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

RandomTools[MersenneTwister]

 GenerateFloat64
 Generate a random float[8]

 Calling Sequence GenerateFloat64( )

Description

 • The GenerateFloat64 command returns a pseudo-random float[8] value, uniformly distributed in the range [0,1).
 • The value returned by GenerateFloat64 can be assigned to a float[8] without any loss of precision.

Examples

 > $\mathrm{with}\left(\mathrm{RandomTools}\left[\mathrm{MersenneTwister}\right]\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{GenerateFloat64}\left(\right),i=1..10\right)$
 ${0.814723686393178936}{,}{0.905791937075619225}{,}{0.126986816293506055}{,}{0.913375856139019393}{,}{0.632359246225409510}{,}{0.0975404049994095246}{,}{0.278498218867048397}{,}{0.546881519204983846}{,}{0.957506835434297598}{,}{0.964888535199276531}$ (2)