delorie.com/archives/browse.cgi | search |
From: | scott AT helsbreth DOT org (Scott Nelson) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Random Number |
Message-ID: | <364913ca.41613643@news.inreach.com> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 981104111205 DOT 25255O-100000 AT is> <71pman$d56$1 AT utah DOT laird DOT net> |
X-Newsreader: | Forte Agent 1.5/32.452 |
MIME-Version: | 1.0 |
Lines: | 16 |
Date: | Wed, 11 Nov 1998 04:35:21 GMT |
NNTP-Posting-Host: | 209.142.18.112 |
NNTP-Posting-Date: | Tue, 10 Nov 1998 20:35:21 PDT |
Organization: | InReach Internet |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Wed, 4 Nov 1998 05:55:50 -0800, "Joe" <jnbtech AT mind DOT net> wrote: >I have a similar question that is not covered in the faq. I know about srand >rand and random. What I need to do is get a number that is less than >MaxRandomNumber such as a series of random numbers between 1 and 100. How >could I do this? > Here's a link to an example program that probably answers your question. http://www.helsbreth.org/random/shuffle.html ----------------------------------- Shameless plug for random web site: http://www.helsbreth.org/random Scott Nelson <scott AT helsbreth DOT org>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |