RandomTools[MersenneTwister] - Maple Help

Home : Support : Online Help : Programming : Random Objects : RandomTools package : MersenneTwister Subpackage : RandomTools/MersenneTwister/GenerateUnsignedInt32

RandomTools[MersenneTwister]

 GenerateUnsignedInt32
 Generate an unsigned 32 bit integer

 Calling Sequence GenerateUnsignedInt32( )

Description

 • The GenerateUnsignedInt32 command returns an unsigned pseudo-random 32 bit integer.
 • The Mersenne Twister algorithm is designed to generate 32 bit integers.  This function provides access to this low level functionality.

Examples

 > $\mathrm{with}\left(\mathrm{RandomTools}[\mathrm{MersenneTwister}]\right)$
 $\left[{\mathrm{GenerateData}}{,}{\mathrm{GenerateFloat}}{,}{\mathrm{GenerateFloat64}}{,}{\mathrm{GenerateInteger}}{,}{\mathrm{GenerateInteger32}}{,}{\mathrm{GenerateUnsignedInt32}}{,}{\mathrm{GetState}}{,}{\mathrm{NewGenerator}}{,}{\mathrm{SetState}}\right]$ (1)
 > $\mathrm{seq}\left(\mathrm{GenerateUnsignedInt32}\left(\right),i=1..10\right)$
 ${3499211612}{,}{581869302}{,}{3890346734}{,}{3586334585}{,}{545404204}{,}{4161255391}{,}{3922919429}{,}{949333985}{,}{2715962298}{,}{1323567403}$ (2)

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam