Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Random Sampling

by demerphq (Chancellor)
on Jun 26, 2002 at 17:02 UTC ( [id://177441]=note: print w/replies, xml ) Need Help??


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
push @results, $array->[$pos];
to
push @results, $array->[$pos++];
But thanks anyway. /me should have tested once or twice more. *sigh*

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-19 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found