|
|
1.1 root 1:
2:
3: srand() General Function (libc) srand()
4:
5:
6:
7:
8: Seed random number generator
9:
10: vvooiidd ssrraanndd(_s_e_e_d) iinntt _s_e_e_d;
11:
12: srand uses seed to initialize the sequence of pseudo-random num-
13: bers returned by rand. Different values of seed initialize dif-
14: ferent sequences.
15:
16: ***** Example *****
17:
18: For an example of this function, see the entry for rand.
19:
20: ***** See Also *****
21:
22: general functions, rand()
23: _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
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.