| delorie.com/archives/browse.cgi | search | 
| Message-ID: | <384F16DF.C5EE5698@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: | Re: Random numbers? | 
| References: | <384F1689 DOT B435CCDF AT localnet DOT com> | 
| Lines: | 11 | 
| NNTP-Posting-Host: | 207.251.194.205 | 
| X-Trace: | typ12.nn.bcandid.com 944707446 207.251.194.205 (Wed, 08 Dec 1999 21:44:06 EST) | 
| NNTP-Posting-Date: | Wed, 08 Dec 1999 21:44:06 EST | 
| Organization: | bCandid - Powering the world's discussions - http://bCandid.com | 
| Date: | Wed, 08 Dec 1999 21:41:35 -0500 | 
| To: | djgpp AT delorie DOT com | 
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp | 
| Reply-To: | djgpp AT delorie DOT com | 
sorry, forgot this is in plain C... Mark Simmons wrote: > > 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
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |