At 08:48 PM 10/11/2001 -0400, Ryan O'Neil wrote:
>I was playing with Parrot and wanted a basic random numbers
>implementation. Just in case anyone else wants it too, here are the
>appropriate diffs and test file. It seemed logical for rand to return a
>real number between 0 and 1 instead of having any reliance on
>RAND_MAX. Any other ideas?
I'm not 100% sure I want random number generation to be a fundamental part
of the interpreter. (Though it *is* really appealing...) This sort of thing
might be better put in the standard library rather than built in as a core
opcode.
Nifty, though. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk