srand()

Sets the seed for the pseudo-random number generator.

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

seed

An initial value.

Remarks

The srand() function sets the seed for the pseudo-random number generator to start. Further calls of srand() with the same seed value produces the same sequence of random numbers.