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.