Mail Archives: djgpp/1997/02/03/11:26:21
On Sun, 2 Feb 1997, Chester Wong wrote:
> For some reason, I was never able to find RAND_MAX documented anywhere.
What documentation do you need? libc.inf documents that `rand' returns a
random integer between 0 and RAND_MAX. If you need to know its value,
RAND_MAX is defined on <stdlib.h>, but IMHO you gain nothing by knowing
exactly what value does it have.
> Is RAND_MAX the same as INT_MAX, or should I not make this assumption?
No, you should not assume this in a portable program.
- Raw text -