Xref: utzoo comp.os.msdos.programmer:1179 comp.sys.ibm.pc.misc:2129 Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!agate!hughes From: hughes@volcano.Berkeley.EDU (Eric Hughes) Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc Subject: Re: Random number generation Message-ID: Date: 28 Sep 90 18:47:09 GMT References: <20092@orstcs.CS.ORST.EDU> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: ucb Lines: 17 In-Reply-To: densond@prism.CS.ORST.EDU's message of 1 Sep 90 03:49:14 GMT In article <20092@orstcs.CS.ORST.EDU> densond@prism.CS.ORST.EDU (Dave Denson) writes: >I need a way to generate suitably random numbers in an assembly language >program. Is there a routine somewhere out there that exist to accomplish >this. I could create your standard MOD-type generator, but I was hoping >for a more elegant solution. Assuming "suitable" in for case does not mean "random," but just "evenly distributed," check the January 1990 issue of Communications of the ACM for the article "Two Fast Implementations of the 'Minimal Standard' Random Number Generator." This is a mod-type generator. And if it suffices, then, by virtue of its simplicity, it _is_ an elegant solution. Eric Hughes hughes@ocf.berkeley.edu