Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 1 | \section{Standard Module \sectcode{whrandom}} |
| 2 | |
| 3 | \stmodindex{whrandom} |
| 4 | This module implements a Wichmann-Hill pseudo-random number generator. |
| 5 | It defines the following functions: |
| 6 | |
| 7 | \renewcommand{\indexsubitem}{(in module whrandom)} |
| 8 | \begin{funcdesc}{random}{} |
| 9 | Returns the next random floating point number in the range [0.0 ... 1.0). |
| 10 | \end{funcdesc} |
| 11 | |
| 12 | \begin{funcdesc}{seed}{x\, y\, z} |
| 13 | Initializes the random number generator from the integers |
| 14 | \var{x}, |
| 15 | \var{y} |
| 16 | and |
| 17 | \var{z}. |
| 18 | When the module is first imported, the random number is initialized |
| 19 | using values derived from the current time. |
| 20 | \end{funcdesc} |