Defined in header <stdlib.h> | ||
#define RAND_MAX /*implementation defined*/ | ||
Expands to an integer constant expression equal to the maximum value returned by the functionrand(). This value is implementation dependent. It's guaranteed that this value is at least32767.
Possible output:
RAND_MAX: 2147483647INT_MAX: 2147483647Random value on [0,1]: 0.362509
| generates a pseudo-random number (function)[edit] | |
| seeds pseudo-random number generator (function)[edit] | |
C++ documentation forRAND_MAX | |