cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/28/06:45:41

Date: Tue, 28 Apr 1998 13:45:18 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Elias Pschernig <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with Function rand()
In-Reply-To: <6i2nmp$sk8$2@orudios.magnet.at>
Message-ID: <Pine.SUN.3.91.980428134458.27094K-100000@is>
MIME-Version: 1.0

On Mon, 27 Apr 1998, Elias Pschernig wrote:

> so does the article say it's not good to use
> GNU's rand() function in programs any longer,
> or can i go on using it ?

AFAIK, there's nothing wrong with DJGPP's `rand', it should indeed
measure well in any reasonable test for randomness.  There are some
well-known deficiencies of the type of random number generator used in
it, but AFAIK they only show when you need to generate a random point
in N-space where N is large (more than 3, say).

`random' is an alternative function, which is somewhat better, but is
less portable (`rand' is ANSI).

- Raw text -


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