nag_rand_logistic (g05slc) generates a vector of pseudorandom numbers from a logistic distribution with mean and spread .
The distribution has PDF (probability density function)
nag_rand_logistic (g05slc) returns the value
is a pseudorandom number uniformly distributed over
One of the initialization functions nag_rand_init_repeatable (g05kfc)
(for a repeatable sequence if computed sequentially) or nag_rand_init_nonrepeatable (g05kgc)
(for a non-repeatable sequence) must be called prior to the first call to nag_rand_logistic (g05slc).
This example prints the first five pseudorandom real numbers from a logistic distribution with mean
, generated by a single call to nag_rand_logistic (g05slc), after initialization by nag_rand_init_repeatable (g05kfc)