randomOptionGet¶
Retrieves the uniform (0, 1) multiplicative congruential pseudorandom number generator.
Synopsis¶
randomOptionGet ()
Return Value¶
Indicator of the generator.
Result | Generator |
---|---|
1 | The multiplier 16807 is used. |
2 | The multiplier 16807 is used with shuffling. |
3 | The multiplier 397204094 is used. |
4 | The multiplier 397204094 is used with shuffling. |
5 | The multiplier 950706376 is used. |
6 | The multiplier 950706376 is used with shuffling. |
7 | GFSR, with the recursion \(X_t=X_{t-1563}\bigoplus X_{t-96}\) is used |
Description¶
The function randomOptionGet
retrieves the uniform (0, 1) multiplicative
congruential pseudorandom number generator or the GRSR
method. The
uniform pseudorandom number generators use a multiplicative congruential
method, with or without shuffling. The value of the multiplier and whether
or not to use shuffling are determined by randomOption.