in reply to Re: Random Sampling
in thread Random Sampling
Hmm, while you are correct that my code was incorrect, I went with a different fix. My fix was simply to change the line
topush @results, $array->[$pos];
But thanks anyway. /me should have tested once or twice more. *sigh*push @results, $array->[$pos++];
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.
In Section
Cool Uses for Perl