randomMt64Init¶
Initializes the 64-bit Mersenne Twister generator using an array.
Synopsis¶
randomMt64Init (keyLength, key)
Required Arguments¶
- int
keyLength
(Input) - Length of the array key.
- unsigned long long
key[]
(Input) - Array of length
keyLength
used to initialize the 64-bit Mersenne Twister generator.
Description¶
By default, the Mersenne Twister random number generator is initialized
using the current seed value (see
randomSeedGet)
. The seed is limited to one
integer for initialization. This function allows an arbitrary length array
to be used for initialization.
This function completely replaces the use of the seed for initialization of the 64-bit Mersenne Twister generator.
Example¶
See function randomMt64TableGet.