Version 3 of srand

Updated 2001-11-10 10:52:57

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.


I don't find an srand section n man page - where does this come from? Is it specs for a function that is missing? Is it part of an existing package? If so, what package - and can we have a URL to its man page?