delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Bill <findme AT hotmail> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: random() : What am I doing wrong? |
Date: | Tue, 04 Sep 2007 16:09:24 -0400 |
Organization: | Posted via Supernews, http://www.supernews.com |
Message-ID: | <13drerhc34nku78@corp.supernews.com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060721 SeaMonkey/1.0.3 |
MIME-Version: | 1.0 |
References: | <N1GBi.41236$S91 DOT 9560 AT newsfe7-win DOT ntli DOT net> <13drciokqdoav65 AT corp DOT supernews DOT com> <200709041948 DOT l84JmRfh001331 AT envy DOT delorie DOT com> |
In-Reply-To: | <200709041948.l84JmRfh001331@envy.delorie.com> |
X-Complaints-To: | abuse AT supernews DOT com |
Lines: | 8 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
DJ Delorie wrote: >> What about if I want to generate numbers in the range of 1 through 50? >> How do I specify my range? > > Take the result and "% 50". That was quick! Thanks, Bill
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |