home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / math / random < prev   
Encoding:
Text File  |  1993-10-26  |  653 b   |  13 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           random limit | seed ?seedval?
  4.                Generate a pseudorandom integer number greater than  or
  5.                equal  to  zero and less than limit.  If seed is speci-
  6.                fied, then the command resets the random number genera-
  7.                tor  to a starting point derived from the seedval. This
  8.                allows one to reproduce pseudorandom  number  sequences
  9.                for  testing purposes.  If seedval is omitted, then the
  10.                seed is set to a value based on  current  system  state
  11.                and  the current time, providing a reasonably interest-
  12.                ing and ever-changing seed.
  13.