www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/21/06:24:37

Date: Thu, 21 Nov 1996 13:14:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Koen DOT VanHerck AT barco DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Proper use of rand()
In-Reply-To: <9611211003.AA01758@ivs4.>
Message-Id: <Pine.SUN.3.91.961121131221.23836C-100000@is>
Mime-Version: 1.0

On Thu, 21 Nov 1996, Koen Van Herck wrote:

> It seems that rand() and random() always return the same numbers when
> a program is started. 

This is a feature.  All random functions return serias which can be 
repeated exactly on the next run.  Otherwise, people who run simulations 
could not debug their programs and compare the results from different 
runs.

- Raw text -


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