CNL Stat : Random Number Generation : random_MT32_table_set
random_MT32_table_set
Sets the current table used in the 32-bit Mersenne Twister generator.
Synopsis
#include <imsls.h>
void imsls_random_MT32_table_set (unsigned int table[])
Required Arguments
unsigned int table [] (Input)
Array of length 625 used in the 32-bit Mersenne Twister generator.
Description
The values in table are the state of the 32-bit Mersenne Twister random number generator obtained by a call to imsls_random_MT32_table_get. The values in the table can be used to restore the state of the generator.
Alternatively, if table[0] > 625 then the generator is set to its original, uninitialized, state.
Example