next up previous contents index
Next: randomInteger Up: RandomNumberGenerator Previous: numberOfGenerators   Contents   Index


randomGenerator


Usage

randomGenerator()
randomGenerator n
randomGenerator(a, b)
randomGenerator(a, b, n)


Signatures

randomGenerator: () $\to$ %  
randomGenerator: MachineInteger $\to$ %  
randomGenerator: (MachineInteger, MachineInteger) $\to$ %  
randomGenerator: (MachineInteger, MachineInteger, MachineInteger) $\to$ %  


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 ${n}^{{\rm th}}$ independent generator is returned, which allows for several independent sources of random numbers.


See Also

numberOfGenerators



Manuel Bronstein 2004-06-28