double RAND(long* seed);
Function to let user specifiy the Uniform(0,1) generator of thier choice. RAND(seed) is then used by the other random variable generators.
Parameters:
seed | Random number generator seed. |
---|
Returns:
The next random number from the generator.
Usage:
Initialization of the generator depends on the implementation choosen by the user. To generate the next random number simply call
double r = RAND(&seed)where seed is a long and is not altered between subsequent RAND calls.
Header:
#include "deviate.h"