home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / w / whrandom next >
Text File  |  1996-11-14  |  900b  |  22 lines

  1. <TITLE>whrandom -- Python library reference</TITLE>
  2. Next: <A HREF="../a/array" TYPE="Next">array</A>  
  3. Prev: <A HREF="../r/rand" TYPE="Prev">rand</A>  
  4. Up: <A HREF="../m/miscellaneous_services" TYPE="Up">Miscellaneous Services</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H1>5.3. Standard Module <CODE>whrandom</CODE></H1>
  7. This module implements a Wichmann-Hill pseudo-random number generator.
  8. It defines the following functions:
  9. <P>
  10. <DL><DT><B>random</B> () -- function of module whrandom<DD>
  11. Returns the next random floating point number in the range [0.0 ... 1.0).
  12. </DL>
  13. <DL><DT><B>seed</B> (<VAR>x</VAR>, <VAR>y</VAR>, <VAR>z</VAR>) -- function of module whrandom<DD>
  14. Initializes the random number generator from the integers
  15. <VAR>x</VAR>,
  16. <VAR>y</VAR>
  17. and
  18. <VAR>z</VAR>.
  19. When the module is first imported, the random number is initialized
  20. using values derived from the current time.
  21. </DL>
  22.