From: "Martin Peach" Newsgroups: comp.os.msdos.djgpp Subject: Re: Random numbers? Date: Thu, 9 Dec 1999 10:52:33 -0500 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 12 Message-ID: <82oj81$r8e@tandem.CAM.ORG> References: <384F1689 DOT B435CCDF AT localnet DOT com> <82ndpi$sll$4 AT ctb-nnrp1 DOT saix DOT net> <384F5A90 DOT 7CAE14BD AT melbpc DOT org DOT au> NNTP-Posting-Host: dialup-39.hip.cam.org X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Peter Russell wrote in message <384F5A90 DOT 7CAE14BD AT melbpc DOT org DOT au>... >These questions regarding random numbers are interesting so here is another >question. I feel sure there is a simple method. How to produce random number >generation on a series such as 4 - 24 but produce the random numbers as >multiples of 4. ie 8, 20, 4, 16 etc. try: x = random()<<2;