Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: Random Sampling

by demerphq (Chancellor)
on Jun 26, 2002 at 17:02 UTC ( #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];
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.

Comment on Re: Re: Random Sampling
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-31 16:29 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (279 votes), past polls