www.delorie.com/archives/browse.cgi | search |
X-Apparently-From: | <prashant?news AT yahoo DOT com> |
Message-ID: | <006001bf3558$48151a80$3af838ca@home-computer> |
From: | "Prashant TR" <prashant_news AT yahoo DOT com> |
To: | "Werner Hartnagel" <code-x AT allgaeu DOT org> |
Cc: | "DJGPP Mailing list" <djgpp AT delorie DOT com> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |