XLPack 6.1
C/C++ API Reference Manual
Loading...
Searching...
No Matches

◆ _init_by_array64()

void _init_by_array64 ( unsigned long long  init_key[],
unsigned long long  key_length 
)

Initialization with array of integers for random number generator (64 bit Mersenne Twister)

Purpose
Initializes the 64 bit Mersenne Twister (MT19937-64) random number generator with the array of integers.
The random number generator should be initialized by init_genrand64() or init_by_array64() before generating random numbers.
Parameters
[in]init_key[]Array init_key[linit_key] (linit_key >= key_length)
Large seed in the integer array.
[in]key_lengthLength of the array init_key[]. (key_length >= 1)
If key_length < 624, init_key[] gives the distinct random number sequence.
Note
If the random number generator is called without an initialization by init_genrand64() or init_by_array64(), it will be automatically initialized by using 5489 as the seed.
Reference
Mersenne Twister Home Page