Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!bridge2!jarthur!uunet!lll-winken!iggy.GW.Vitalink.COM!widener!ukma!psuvax1!psuvm!cxt105 From: CXT105@psuvm.psu.edu (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Floating-point random numbers Message-ID: <91149.191348CXT105@psuvm.psu.edu> Date: 29 May 91 23:13:48 GMT Organization: Penn State University Lines: 13 Does anyone out there have code for a good, preferably *fast* floating- point random number generator? Currently, I'm doing something along the lines of taking (Random() + 32768) / 65535 (with appropriate typecasts to make sure I keep all the significant bits), but this seems a little... kludgy, to say the least. Sources appreciated, but code would be better... :-) ------- Christopher Tate | (i do not know what is it about you cxt105@psuvm.psu.edu | that closes and opens; only something ..!psuvax1!psuvm.bitnet!cxt105 | in me understands the voice of your cxt105@psuvm.bitnet | eyes is deeper than all roses)