Name
srand function — Sets seed for pseudo-random number
generator
Synopsis
void srand(unsigned int seed)
The srand
function saves
seed
as the seed for a new
sequence of pseudo-random numbers to be returned by successive calls
to rand
. The default seed is
1
.