IMSL C Stat Library
random_option_get
Retrieves the uniform (0, 1) multiplicative congruential pseudorandom number generator.
Synopsis
#include <imsls.h>
int imsls_random_option_get ()
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 Xt = Xt−1563 Xt−96 is used
Description
The function imsls_random_option_get 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 imsls_random_option.