##### Synopsis

    #include <stdlib.h>
    void srand(unsigned int seed);

##### Description

srand uses the argument seed as a seed for a new sequence of pseudo-random numbers to be returned by subsequent calls to rand. If srand is called with the same seed value, the same sequence of pseudo-random numbers is generated.

If rand is called before any calls to srand have been made, a sequence is generated as if srand is first called with a seed value of 1.

##### Portability

srand conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).

##### See Also

rand RAND_MAX