🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #5185

Re: rand()

#5185
From: brnstnd
Date: Wed, 10 Jan 1990 22:06
11 lines
900 bytes
In article <5814@orca.wv.tek.com> andrew@frip.wv.tek.com writes:
> It's generally unsafe to generate a linear
> congruential sequence, then take the elements modulo various small
> numbers.
>
> This is discussed in the standard reference:  Knuth volume II.

Knuth does not make that statement, and it simply isn't true for the
application in question.

---Dan
Technical Details
Message-ID: <5341@stealth.acf.nyu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!yale!cmcl2!stealth.acf.nyu.edu!brnstnd
References: <815@stealth.acf.nyu.edu> <2597@cunixc.cc.columbia.edu> <2434@stealth.acf.nyu.edu> <5814@orca.wv.tek.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!yale!cmcl2!stealth.acf.nyu.edu!brnstnd
From: brnstnd@stealth.acf.nyu.edu
Newsgroups: comp.sources.d,comp.sources.games.bugs
Subject: Re: rand()
Message-ID: <5341@stealth.acf.nyu.edu>
Date: 10 Jan 90 22:06:45 GMT
References: <815@stealth.acf.nyu.edu> <2597@cunixc.cc.columbia.edu> <2434@stealth.acf.nyu.edu> <5814@orca.wv.tek.com>
Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein)
Distribution: usa
Organization: IR
Lines: 11