From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Random numbers Date: 3 Jun 1997 01:48:18 GMT Organization: Oxford University, England Message-ID: <5mvt52$f3i@news.ox.ac.uk> References: <1 DOT 5 DOT 4 DOT 32 DOT 19970603001153 DOT 006bc018 AT dce03 DOT ipt DOT br> NNTP-Posting-Host: sable.ox.ac.uk Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Cesar Scarpini Rabak (csrabak AT dce03 DOT ipt DOT br) wrote: : At 11:34 30/05/97 GMT, George Foot wrote: : >This is just plain wrong, random takes no parameters and returns a number : >from 0 to MAXINT (over two thousand million). : For the sake of correctness from 0 to RAND_MAX... Not according to the docs. They say that rand() returns numbers from 0 to RAND_MAX inclusive, and random() returns numbers from 0 to MAXINT inclusive. -- George Foot Merton College, Oxford