cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/30/02:34:26

Date: Fri, 30 Jul 1999 09:11:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: how about "more" random ?
In-Reply-To: <37A0BAD7.3DB143DB@lycosmail.com>
Message-ID: <Pine.SUN.3.91.990730091120.25172H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 29 Jul 1999, Adam Schrotenboer wrote:

> >         x = ((double) rand ()) * 100 / RAND_MAX;
> 
> Not exactly the correct method (IIRC), but close:
> 
> x = ((double) rand ()/RAND_MAX) * 100;

Care to explain what is the difference?

- Raw text -


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