1 \section{\module{rand
} ---
3 \declaremodule{standard
}{rand
}
8 The
\code{rand
} module simulates the C library's
\code{rand()
}
9 interface, though the results aren't necessarily compatible with any
10 given library's implementation. While still supported for
11 compatibility, the
\code{rand
} module is now considered obsolete; if
12 possible, use the
\code{whrandom
} module instead.
15 \begin{funcdesc
}{choice
}{seq
}
16 Returns a random element from the sequence
\var{seq
}.
19 \begin{funcdesc
}{rand
}{}
20 Return a random integer between
0 and
32767, inclusive.
23 \begin{funcdesc
}{srand
}{seed
}
24 Set a starting seed value for the random number generator;
\var{seed
}
25 can be an arbitrary integer.
29 \seemodule{random
}{Python's interface to random number generators.
}
30 \seemodule{whrandom
}{The random number generator used by default.
}