nag_random_exp (g05dbc) returns a pseudorandom real number taken from a (negative) exponential distribution with mean .
The distribution has PDF (probability density function)
The function returns the value
is a pseudorandom number from a uniform distribution over (0,1), generated by nag_random_continuous_uniform (g05cac)
The example program prints the first five pseudorandom real numbers from a negative exponential distribution with mean 2.0, generated by nag_random_exp (g05dbc) after initialization by nag_random_init_repeatable (g05cbc)