|
||
void srand( int seed )
int seed; /* ramdon number generator seed value */
|
|
|
Synopsis |
#include "stdlib.h"
The srand function prepares the pseudo-random number generator for a new sequence of random numbers.
|
|
Parameters |
seed is any positive integral number.
|
|
Return Value |
none
|
|
Comments |
If rand is called before srand, the seed used will be 1.
|
|
See Also |
|
|
|
|