From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: rand and random Date: Sun, 31 Oct 1999 10:08:42 +0200 Organization: NetVision Israel Lines: 9 Message-ID: References: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 941357240 11200 199.203.121.2 (31 Oct 1999 08:07:20 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 31 Oct 1999 08:07:20 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 31 Oct 1999, Damian Yerrick wrote: > rand() will give a number between 0 and 32,767. Not true; please try to check your advice before posting. `rand' returns a random integer between 0 and RAND_MAX. The latter is defined on stdlib.h, and is much larger than 32K.