Message-ID: <384F1689.B435CCDF@localnet.com> From: Mark Simmons X-Sender: "Mark Simmons" (Unverified) X-Mailer: Mozilla 4.06 [en]C-gatewaynet (Win98; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Random numbers? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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