Date: Mon, 3 Feb 1997 18:08:31 +0200 (IST) From: Eli Zaretskii To: Chester Wong cc: djgpp AT delorie DOT com Subject: Re: random numbers error in DJGPP In-Reply-To: <32f4edb6.6181778@news.cc.columbia.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 , 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.