rand on 4d broken
Henry Spencer
henry at utzoo.uucp
Wed Jun 28 08:40:23 AEST 1989
In article <165 at odin.SGI.COM> andru at rhialto.sgi.com (Andrew Myers) writes:
> ... UNIX rand() is well known to
> be an extremely poor random number generator...
In fairness, the *original* Version 7 rand() wasn't too bad. Not great,
but not bad. It was a 32-bit generator that returned the *upper* 16 bits
to avoid the rather non-random behavior of the low-order bits. Alas, many
of the people who messed with it later didn't appreciate this subtlety.
--
NASA is to spaceflight as the | Henry Spencer at U of Toronto Zoology
US government is to freedom. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.sys.sgi
mailing list