Date: Tue, 25 Feb 1997 16:52:51 +0200 (IST) From: Eli Zaretskii To: Cesar Scarpini Rabak cc: fighteer AT cs DOT com, djgpp AT delorie DOT com Subject: Re: Error?? In-Reply-To: <1.5.4.16.19970225095618.296ffd00@dmeasc.rc.ipt.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 25 Feb 1997, Cesar Scarpini Rabak wrote: > >roll = random() % 6 + 1 + random() % 6 + 1 + random() % 6 + 1; > > > > BTW^2, it is also a poor practice to use just the modulo operator in the > return values from random, as the lower bits of the pseudo random number > have less "randomness". That is correct for `rand', but `random' is documented to return all of its bits random.