1RAND(3)                    Library Functions Manual                    RAND(3)
2
3
4

NAME

6       rand, srand - random number generator
7

SYNOPSIS

9       srand(seed)
10       int seed;
11
12       rand( )
13

DESCRIPTION

15       Rand  uses  a  multiplicative congruential random number generator with
16       period 232 to return successive pseudo-random numbers in the range from
17       0 to 215-1.
18
19       The generator is reinitialized by calling srand with 1 as argument.  It
20       can be set to a random starting point by calling  srand  with  whatever
21       you like as argument.
22
23
24
25                                                                       RAND(3)
Impressum