Generate random number following gaussian distribution

If you want other distributions as well do

using Distributions

rand(Normal(0,1))
rand(Gamma(3,1))
...etc
1 Like