dimanche 2 août 2020

How can I use GSL lib to generate random numbers that are within a given range?

For instance, I want to generate random numbers which follow lognormal distribution and, also, are within a given range (min, max).

I found the function:

double gsl_ran_lognormal(const gsl_rng * r, double zeta, double sigma);

It do not allow me to input min and max range values.




Aucun commentaire:

Enregistrer un commentaire