nag_rngs_lognormal (g05lkc) generates a vector of pseudorandom numbers from a log-normal distribution with parameters and .
The distribution has PDF (probability density function)
i.e.,
is normally distributed with mean
and variance
. nag_rngs_lognormal (g05lkc) evaluates
, where the
are generated by
nag_rngs_normal (g05lac) from a Normal distribution with mean
and variance
.
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_lognormal (g05lkc).
Not applicable.
None.
This example prints five pseudorandom numbers from a log-normal distribution with mean
and variance
, generated by a single call to nag_rngs_lognormal (g05lkc), after initialization by
nag_rngs_init_repeatable (g05kbc).
None.