mardi 20 novembre 2018

Julia: Generate normally distributed random number with restricted range

Question: How can I generate a random number in the interval [0,1] from a Gaussian distribution in Julia?

I gather randn is the way to generate normally distributed random numbers, but the documentation's description of how to specify a range is quite opaque.




Aucun commentaire:

Enregistrer un commentaire