RAND(3C) UNIX Programmer's Manual RAND(3C) NAME rand, srand - random number generator SYNOPSIS srand (seed) unsigned seed; rand ( ) HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System III DESCRIPTION _R_a_n_d uses a multiplicative congruential random number gen- erator with period 2^15 to return successive pseudo-random numbers. The generator is reinitialized by calling _s_r_a_n_d with 1 as argument. It can be set to a random starting point by cal- ling _s_r_a_n_d with whatever number you like as the argument.