Usage
randomGenerator()
randomGenerator n
randomGenerator(a, b)
randomGenerator(a, b, n)
Signatures
randomGenerator: () % randomGenerator: MachineInteger % randomGenerator: (MachineInteger, MachineInteger) % randomGenerator: (MachineInteger, MachineInteger, MachineInteger) %
Parameter | Type | Description |
---|---|---|
a, b | MachineInteger | bounds for the generator |
n | MachineInteger | identifier for the generator (optional) |
Returns
randomGenerator() returns a pseudo-random generator, while randomGenerator(a, b) returns a pseudo-random number generator that generates numbers between a and b inclusive. If the optional argument n is given, then the independent generator is returned, which allows for several independent sources of random numbers.
See Also
numberOfGenerators