nag_rngs_normal (g05lac) generates a vector of pseudorandom numbers taken from a Normal (Gaussian) distribution with mean and variance .
The distribution has PDF (probability distribution function)
nag_rngs_normal (g05lac) uses the Box–Muller method.
One of the initialization functions
nag_rngs_init_repeatable (g05kbc) (for a repeatable sequence if computed sequentially) or
nag_rngs_init_nonrepeatable (g05kcc) (for a non-repeatable sequence) must be called prior to the first call to nag_rngs_normal (g05lac).
None.
This example prints five pseudorandom numbers from a Normal distribution with mean
and variance
, generated by a single call to nag_rngs_normal (g05lac), after initialization by
nag_rngs_init_repeatable (g05kbc).
None.