next up previous contents index
Next: 5.4 Built-in Module array Up: 5 Miscellaneous Services Previous: 5.2 Standard Module rand

5.3 Standard Module whrandom

This module implements a Wichmann-Hill pseudo-random number generator. It defines the following functions:

random()
Returns the next random floating point number in the range [0.0 ... 1.0).

seed(x, y, z)
Initializes the random number generator from the integers x, y and z. When the module is first imported, the random number is initialized using values derived from the current time.



guido@cnri.reston.va.us