Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uwm.edu!uwvax!thylacine!engber From: engber@thylacine.CS.WISC.EDU (Mike Engber) Newsgroups: comp.sys.mac.programmer Subject: algorithm for Random Summary: anyone know what it is? Message-ID: <8505@spool.cs.wisc.edu> Date: 20 Sep 89 15:21:18 GMT Sender: news@spool.cs.wisc.edu Reply-To: engber@thylacine.CS.WISC.EDU (Mike Engber) Organization: U of Wisconsin CS Dept Lines: 16 I'm looking for the details of how Random is implemented in QuickDraw so students of mine that are not working on Macs can generate the same sequence of random numbers to use in testing their programs. I'm hoping it's something like: function Random; begin RandSeed := (RandSeed*c1 + c2) mod c3; Random := RandSeed; end; So I need the values for c1,c2, & c3. Anyone know them or how to figure them out efficiently? -ME