Re: rand/srand patch

2001-10-12 Thread Michael Maraist
> 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 ins

Re: rand/srand patch

2001-10-12 Thread Dan Sugalski
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 h

rand/srand patch

2001-10-11 Thread Ryan O'Neil
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? --