RandomTools[MersenneTwister][GetState] - Get the internal state of the Mersenne Twister Generator
|
Calling Sequence
|
|
GetState( )
|
|
Description
|
|
•
|
The GetState command returns the internal state of the Mersenne Twister pseudo-random number generator. The state is an rtable of type with 625 entries.
|
•
|
The state returned by GetState can be passed into SetState to regenerate a sequence of numbers.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?