RAND_MAX

#define RAND_MAX <integer constant expression >= 32,767>
 
The macro yields the maximum value returned by rand.