www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/19/17:50:19

X-Sender: dlanor AT mail DOT dds DOT nl
Message-Id: <l03130304b3679bea9d59@[145.98.116.93]>
In-Reply-To: <Pine.SUN.3.91.990518142318.24330v-100000@is>
References: <v01540b01b366f633a76c@[145.18.167.138]>
Mime-Version: 1.0
Date: Wed, 19 May 1999 00:40:14 +0200
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Dlanor Blytkerchan <dlanor AT dds DOT nl>
Subject: Re: ** Random error **
Cc: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

>On Tue, 18 May 1999, Ronald Landheer wrote:
>> In libc, there is some reference to random() not being all that random.
>No, it's random even more than rand().
Then it was the other way around ;-)
What I don't understand is why it would be diffirent at all, if both use
the RNG (random number generator), or does one use the RNG and the other an
array of randomly picked integers? I've seen some programs that implement
their own RNG code to make sure random numbers are the same on every
computer (in VGA Planets, this is important for battle outcome to be the
same on the host- and player-side computer, so the player can watch the
battle). Does either rand() or random() do something similar (that you know
of - don't download and check the source on my account ;-> )

Greetz!

Dlanor


- Raw text -


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