home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
python
/
pyhtmldoc
/
w
/
whrandom
next >
Wrap
Text File
|
1996-11-14
|
900b
|
22 lines
<TITLE>whrandom -- Python library reference</TITLE>
Next: <A HREF="../a/array" TYPE="Next">array</A>
Prev: <A HREF="../r/rand" TYPE="Prev">rand</A>
Up: <A HREF="../m/miscellaneous_services" TYPE="Up">Miscellaneous Services</A>
Top: <A HREF="../t/top" TYPE="Top">Top</A>
<H1>5.3. Standard Module <CODE>whrandom</CODE></H1>
This module implements a Wichmann-Hill pseudo-random number generator.
It defines the following functions:
<P>
<DL><DT><B>random</B> () -- function of module whrandom<DD>
Returns the next random floating point number in the range [0.0 ... 1.0).
</DL>
<DL><DT><B>seed</B> (<VAR>x</VAR>, <VAR>y</VAR>, <VAR>z</VAR>) -- function of module whrandom<DD>
Initializes the random number generator from the integers
<VAR>x</VAR>,
<VAR>y</VAR>
and
<VAR>z</VAR>.
When the module is first imported, the random number is initialized
using values derived from the current time.
</DL>