www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/10/01/14:25:19

Date: Thu, 1 Oct 1998 14:23:19 -0400 (EDT)
Message-Id: <199810011823.OAA00553@indy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.981001211647.18395Q-100000@is> (message from Eli
Zaretskii on Thu, 1 Oct 1998 21:17:11 +0300 (IDT))
Subject: Re: Proposed New Random

> 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.

- Raw text -


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