home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-21 | 430 b | 20 lines | [TEXT/RLAB] |
- srand:
-
- Syntax: srand ( )
- srand ( a )
- srand ( "clock" )
-
- Description:
-
- Srand sets the seed for the random number generator.
- `srand()' sets the seed to the original value (the last value
- given to srand(), or the default value, 1).
-
- `srand( "clock" )' sets the seed based upon the machines clock
- value. This provides users a way of picking a unique seed each
- time.
-
- Srand uses the RANLIB subroutine SETALL.
-
- See Also: rand
-