Random number from a normal distribution

rnorm sigma
(rnorm mean sigma)
(rnorm mean sigma n)

Returns a random number from the normal distribution with the mean value of 0.0 and the standard deviation value of sigma, or the mean value of mean and the standard deviation value of sigma. If n is specified then n-element array of random numbers is returned.

Example:

print rnorm 1
print (rnorm 5 1)

Output:

-0.796878397464752
5.56213802099228

See also:

Table of Content