

srand()              General Function (libc)              srand()




Seed random number generator

vvooiidd ssrraanndd(_s_e_e_d) iinntt _s_e_e_d;

srand uses seed  to initialize the sequence of pseudo-random num-
bers returned by  rand.  Different values of seed initialize dif-
ferent sequences.

***** Example *****

For an example of this function, see the entry for rand.

***** See Also *****

general functions, rand()
_T_h_e _A_r_t _o_f _C_o_m_p_u_t_e_r _P_r_o_g_r_a_m_m_i_n_g, vol. 2








































COHERENT Lexicon                                           Page 1


