home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Developers / RLaB / help / srand < prev    next >
Encoding:
Text File  |  1994-02-21  |  430 b   |  20 lines  |  [TEXT/RLAB]

  1. srand:
  2.  
  3. Syntax:    srand ( )
  4.     srand ( a )
  5.     srand ( "clock" )
  6.  
  7. Description:
  8.  
  9.     Srand sets the seed for the random number generator.
  10.     `srand()' sets the seed to the original value (the last value
  11.     given to srand(), or the default value, 1).
  12.  
  13.     `srand( "clock" )' sets the seed based upon the machines clock
  14.     value. This provides users a way of picking a unique seed each
  15.     time.
  16.  
  17.     Srand uses the RANLIB subroutine SETALL.
  18.  
  19. See Also: rand
  20.