7 Accuracy

Not applicable.

8 Further Comments

Although yi takes a value from the half closed interval 0,1 and xi=a+b-ayi, xi is documented as taking values from the closed interval a,b. This is because for some values of a and b, nag_rand_uniform (g05sqc) may return a value of a due to numerical rounding.

9 Example

This example prints five pseudorandom numbers from a uniform distribution between -1.0 and 1.0, generated by a single call to nag_rand_uniform (g05sqc), after initialization by nag_rand_init_repeatable (g05kfc).