cpython-withatomic / Doc / librand.tex

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

\stmodindex{rand} This module implements a pseudo-random number
generator with an interface similar to \code{rand()} in C.  It defines
the following functions:

\renewcommand{\indexsubitem}{(in module rand)}
Returns an integer random number in the range [0 ... 32768).

Returns a random element from the sequence (string, tuple or list)

Initializes the random number generator with the given integral seed.
When the module is first imported, the random number is initialized with
the current time.