#include <stdlib.h>#define RAND_MAX 32767
RAND_MAX expands to an integer constant expression that is the maximum value returned by rand.
RAND_MAX conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).
rand srand