This macro expands to an integral constant expression whose value is the maximum value returned by the rand function.
This value is library dependent, but is granted to be at least 32767.
RAND_MAX
macro
<cstdlib>Maximum value returned by rand
<cstdlib>Maximum value returned by rand