delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/17:35:12

From: malcolmj7 AT aol DOT com (MalcolmJ7)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Random Number
Lines: 7
NNTP-Posting-Host: ladder03.news.aol.com
X-Admin: news AT aol DOT com
Date: 3 Nov 1998 22:33:24 GMT
Organization: AOL http://www.aol.com
References: <71kbql$a5$1 AT zoltar DOT gatchaman DOT fr>
Message-ID: <19981103173324.14103.00003576@ng119.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

'seed' is the number that the random numbers start at, so if the seed is
different every time, then so will the random number.  On way to make them
different every time is to make a randomize function that will check the system
time and use srandom(seed).   seed will be the number of seconds on the system
time
Malcolm
malcolmj7 AT aol DOT com

- Raw text -


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