GetState - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

RandomTools[LinearCongruence]

  

GetState

  

Get the internal state of the Linear Congruence Generator

 

Calling Sequence

Description

Examples

Calling Sequence

GetState( )

Description

• 

The GetState command returns the internal state of the Linear Congruence pseudo-random number generator.  The state is an integer.

• 

The state returned by GetState can be passed into SetState to regenerate a sequence of numbers.

Examples

(1)

(2)

(3)

(4)

See Also

rand

RandomTools

RandomTools[Generate]

RandomTools[GetState]

RandomTools[LinearCongruence]

RandomTools[LinearCongruence][GenerateInteger]

RandomTools[LinearCongruence][SetState]

RandomTools[SetState]

 


Download Help Document