C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Random Number Functions
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The srand function sets the starting point for generating a series
     of pseudorandom integers. To reinitialize the generator, use 1 as
     the <seed> argument. Any other value for <seed> sets the generator
     to a random starting point.
 
     The rand function returns a pseudorandom integer in the range
     0 to RAND_MAX. Calling rand before any call to srand generates the
     same sequence as calling srand with <seed> passed as 1.
 
     Return Value
 
     The rand function returns a pseudorandom number, as described
     above. There is no error return for either function.
                                    -♦-