Standard Module rand

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


\begin{funcdesc}{rand}{}
Returns an integer random number in the range [0 ... 32768).
\end{funcdesc}


\begin{funcdesc}{choice}{s}
Returns a random element from the sequence (string, tuple or list)
\var{s}.
\end{funcdesc}


\begin{funcdesc}{srand}{seed}
Initializes the random number generator with the g...
...imported, the random number is initialized with
the current time.
\end{funcdesc}