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