Version 2 of srand

Updated 2001-11-09 22:11:03

Purpose: Help with the math function rand.


srand(arg)

The arg, which must be an integer, is used to reset the seed for the random number generator. Returns the first random number from that seed. Each interpreter has its own seed.


See also: rand.

The rand() and srand() functions are not cryptographically secure, and must not be used to generate one-time passwords or session keys.