RandomTools[LinearCongruence][SetState] - Set the internal state of the Linear Congruence Generator
|
Calling Sequence
|
|
SetState( option )
|
|
Parameters
|
|
option
|
-
|
(optional) argument of the form option=value where option is state
|
|
|
|
|
Description
|
|
•
|
The SetState command sets the state of the Linear Congruence pseudo-random number generator.
|
•
|
A state returned by GetState can be passed into SetState to regenerate a sequence of numbers.
|
•
|
SetState accepts one optional argument, state.
|
|
The state argument specifies the data used to set the state of the generator. If the state argument is not given then the state is seeded using values taken from the system.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
>
|
|
| (4) |
>
|
|
>
|
|
| (5) |
>
|
|
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?