1. Armin Rigo
  2. cpython-withatomic


cpython-withatomic / Doc / libwhrandom.tex

The branch 'legacy-trunk' does not exist.
\section{Standard Module \sectcode{whrandom}}

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

\renewcommand{\indexsubitem}{(in module whrandom)}
Returns the next random floating point number in the range [0.0 ... 1.0).

\begin{funcdesc}{seed}{x\, y\, z}
Initializes the random number generator from the integers
When the module is first imported, the random number is initialized
using values derived from the current time.