srand

Starts a new sequence of pseudo-random integers to be returned by subsequent calls to the rand function

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Platform:NLM
Service:Mathematical Computation

Syntax

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

Parameters

seed
(IN) Specifies the initial seed value passed in by the user.

Return Values

None

Remarks

A particular sequence of pseudo-random integers can be repeated by calling srand with the same seed parameter value.

See Also

rand, rand_r