X-Apparently-From: Message-ID: <006001bf3558$48151a80$3af838ca@home-computer> From: "Prashant TR" To: "Werner Hartnagel" Cc: "DJGPP Mailing list" Subject: Re: Random Numbers Date: Tue, 23 Nov 1999 07:27:12 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com >How can I get Random Numbers between 1...79? Use randomnumber = (random() % 79) + 1; And use srandom(time(0)) to avoid the same sequence of random numbers. Prashant __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com