Synopsis
#include <stdlib.h>
int rand(void);
Description
rand computes a sequence of pseudo-random integers in the range 0 to RAND_MAX.
rand returns the computed pseudo-random integer.
Portability
rand conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).