Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!rutgers!orstcs!jacobs.CS.ORST.EDU!kohler From: kohler@jacobs.CS.ORST.EDU (kurt kohler) Newsgroups: comp.sys.dec Subject: Re: Random numbers on PDP-11 Keywords: PDP-11 random numbers Message-ID: <19207@orstcs.CS.ORST.EDU> Date: 4 Jul 90 20:55:15 GMT References: <19191@orstcs.CS.ORST.EDU> <1739@mountn.dec.com> Sender: usenet@orstcs.CS.ORST.EDU Distribution: na Organization: Oregon State University - CS - Corvallis Lines: 23 In article <1739@mountn.dec.com> minow@bolt.enet.dec.com (Martin Minow) writes: >In article <19191@orstcs.CS.ORST.EDU> kohler@jacobs.CS.ORST.EDU >(kurt kohler) writes: >> We have the need to generate some small (< 100) integers on the >>PDP-11. It doesn't need to be of terribly high quality. > > * The algorithm is based on the mth$random function in the > * VMS common run-time library. > >Martin Minow >minow@bolt.enet.dec.com Thanks for the reply, but I guess I should have been more explicit. What I wanted was a function that could be evaluated with the 16 bit arithmetic on the PDP-11. Actually since all that is required is a 32 bit multiply I could use it I suppose, it would just be more straight forward to have 16 bit constants and a 16 bit result. Kurt Kohler Kurt Kohler "I'm a pussycat, not an electrician!" Internet: kohler@jacobs.cs.orst.edu -- Not Dr. McCoy Asset Control Systems, Inc. Corvallis, OR