[comp.sys.mac.programmer] Floating-point random numbers

CXT105@psuvm.psu.edu (Christopher Tate) (05/30/91)

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)