A not so Random Random

David N. Smith (IBM) dnsmith at watson.ibm.com
Fri Jun 11 21:39:11 UTC 1999


At 15:08 -0400 6/11/99, Jesse Welton wrote:
>...SNIP...
>Here's a question: If the algorithm were changed to use a modulus
>which fits into Squeak's 30-bit integers, would the resulting code run
>any faster than the float version, or still slower?

This would require redoing the extensive testing that makes the Park-Miller
generator worth using. Such testing is difficult, time consuming, and best
done by an expert.

It would probably make more sense to compute the value in a primitive and
use the C version of the code.

Dave
_______________________________
David N. Smith
IBM T J Watson Research Center
Hawthorne, NY
_______________________________
Any opinions or recommendations
herein are those of the author
and not of his employer.





More information about the Squeak-dev mailing list