www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/08/22:09:30

Message-ID: <384F1689.B435CCDF@localnet.com>
From: Mark Simmons <zack97 AT localnet DOT com>
X-Sender: "Mark Simmons" <zack97 AT localnet DOT com> (Unverified)
X-Mailer: Mozilla 4.06 [en]C-gatewaynet (Win98; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Random numbers?
Lines: 7
NNTP-Posting-Host: 207.251.194.205
X-Trace: typ12.nn.bcandid.com 944707363 207.251.194.205 (Wed, 08 Dec 1999 21:42:43 EST)
NNTP-Posting-Date: Wed, 08 Dec 1999 21:42:43 EST
Organization: bCandid - Powering the world's discussions - http://bCandid.com
Date: Wed, 08 Dec 1999 21:40:09 -0500
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How do I get a number that will be psuedo random?  time(null) % max
doesn't work because the numbers need to be read in quick succession and
it simply produces a 1,2,3,4,5,6,7,8,9...0,1,2.... etc. pattern.. So,
how do I get a number that seems sort of random with a variable max?
		

				thanks in advance

- Raw text -


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