X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Bill 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: <13drciokqdoav65 AT corp DOT supernews DOT com> <200709041948 DOT l84JmRfh001331 AT envy DOT delorie DOT com> In-Reply-To: <200709041948.l84JmRfh001331@envy.delorie.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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