Date: Thu, 1 Oct 1998 21:45:54 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: Proposed New Random In-Reply-To: <199810011823.OAA00553@indy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 1 Oct 1998, DJ Delorie wrote: > > And second, one of the most valuable features of `random' is that all > > its bits, inluding the LSB's, are random, so you could get a random > > bit with "random() % 2". Does your algorithm have this feature? > > Actually, I think rand() has this property at the moment, because it > uses a 64-bit seed and extracts the middle 32-bits for the return > value. It would be interesting to run some tests on it from Knuth's v.3. Any takers?