delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/10/01/14:45:51

Date: Thu, 1 Oct 1998 21:45:54 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Proposed New Random
In-Reply-To: <199810011823.OAA00553@indy.delorie.com>
Message-ID: <Pine.SUN.3.91.981001214517.18395g-100000@is>
MIME-Version: 1.0

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019