RandomTools[MersenneTwister]
GenerateData
Generate a list of integers using the Mersenne Twister Generator
Calling Sequence
Parameters
Description
Examples
Compatibility
GenerateInteger( range, n )
range
-
posint or range of integers; specify the range of values to sample from
n
posint; the list size
The GenerateData command outputs a sequence of integers, generated using the MersenneTwister algorithm.
When generating a large number of random integers it is faster to create a generating procedure by calling NewGenerator than to call GenerateInteger.
If the value of the range argument is a range, then the integer is chosen from that range. If the value of the range argument is an integer, then the integer is chosen from the range 0..value-1.
with⁡RandomToolsMersenneTwister:
GenerateData⁡1..10,10
7,10,6,2,4,6,5,1,8,5
GenerateData⁡100,5
50,20,18,84,11
The RandomTools[MersenneTwister][GenerateData] command was updated in Maple 2017.
See Also
rand
RandomTools
RandomTools[BlumBlumShub]
RandomTools[Generate]
RandomTools[LinearCongruence]
RandomTools[MersenneTwister][GenerateFloat64]
RandomTools[MersenneTwister][GenerateFloat]
RandomTools[MersenneTwister][GenerateInteger32]
RandomTools[MersenneTwister][GenerateUnsignedInt32]
RandomTools[QuadraticCongruence]
Download Help Document