normal

Returns a floating-point number drawn from a normal (Gaussian) distribution with mean mu and standard deviation sigma. If no random number generator is specified, the default rndGen will be used as the source of randomness.

Note that this function uses two variates from the uniform random number generator to generate a single normally-distributed variate. It is therefore an inefficient means of generating a large number of normally-distributed variates. If you wish to draw many variates from the normal distribution, it is better to use the range-based normalDistribution instead.

  1. auto normal(T1 mu, T2 sigma)
    normal
    (
    T1
    T2
    )
    (
    T1 mu
    ,)
    if (
    isNumeric!T1 &&
    isNumeric!T2
    )
  2. auto normal(T1 mu, T2 sigma, UniformRNG rng)

Meta