9.3.6 Producing random numbers with a normal distribution: randnorm randNorm
The randnorm command chooses a random number according to a
normal distribution.
randNorm is a synonym for randnorm.
-
randnorm takes two arguments:
-
µ, a real number (the mean).
- σ, a positive real number (the standard deviation).
- randnorm(µ,σ) returns a number chosen
randomly according the normal distribution with mean µ and standard
deviation σ.
Example.
Input:
randnorm(2,1)
Output (for example):