nag_random_continuous_uniform_ab (g05dac) returns a pseudorandom real number taken from a uniform distribution over the interval .
This 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 function ensures that
lies in the closed interval
The example program prints the first five pseudorandom real numbers from a uniform distribution between 1.0 and 1.5, generated by nag_random_continuous_uniform_ab (g05dac) after initialization by nag_random_init_repeatable (g05cbc)