Random number generator of normal (Gaussian) distribution with parameters
s. You can obtain any successive random number
xof the standard normal distribution by the inverse transformation method from the following formula:
uis a random number uniformly distributed over the interval (-1, 1), and
u) is inverse to the error function .
The normal distribution with parameters
sis transformed to the random number
by scaling and the shift
y = sx+a.