🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #5

Re: random number generator

#5
From: CBFalconer
Date: Sun, 01 Jun 2003 13:04
24 lines
1797 bytes
lovens weche wrote:
> 
... snip ...
> 
> --- the code (don't you love the C programming language?
> ;) ------------------
> 
> a = 2 ^ 31;
> c = 3;
> m = (2 ^ 31) -1;
> 
... snip ...

i.e.:
  a = 33;
  c = 3;
  m = 32;

somehow I have niggling doubts that this is what you intended.

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!
Technical Details
Message-ID: <3ED9F2AC.9C3C8294@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net news.stealth.net!news.stealth.net!cyclone1.gnilink.net!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail
References: <SikCa.1506$Z83.788@wagner.videotron.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014db,da54b5a763359bc3
X-Google-Attributes: gid1014db,public
X-Google-Thread: 109fba,da54b5a763359bc3
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10d4ba,da54b5a763359bc3
X-Google-Attributes: gid10d4ba,public
X-Google-ArrivalTime: 2003-06-01 06:04:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net news.stealth.net!news.stealth.net!cyclone1.gnilink.net!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail
Message-ID: <3ED9F2AC.9C3C8294@yahoo.com>
From: CBFalconer <cbfalconer@yahoo.com>
Reply-To: cbfalconer@worldnet.att.net
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: att.lang.c++,comp.lang.c,comp.lang.c++
Subject: Re: random number generator
References: <SikCa.1506$Z83.788@wagner.videotron.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 25
Date: Sun, 01 Jun 2003 13:04:07 GMT
NNTP-Posting-Host: 12.90.171.221
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1054472647 12.90.171.221 (Sun, 01 Jun 2003 13:04:07 GMT)
NNTP-Posting-Date: Sun, 01 Jun 2003 13:04:07 GMT