Xref: utzoo comp.sources.d:4547 comp.sources.games.bugs:1364 Path: 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 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