Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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];
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
Node Status?
node history
Node Type: note [id://177441]
help
Chatterbox?
[marto]: believe in derp coin
[Corion]: Oh - I see ...
[LanX]: like http://cb60. datenzoo.de/:// perlmonks.org/ index.pl?node_id= 1215217
[Discipulus]: username links i bet
[Corion]: (also, let me recommend https://mini-cb60. datenzoo.de/ over that, as it has https :)
[LanX]: all links
[Corion]: I guess I should make the certificate valid for both hostnames
[LanX]: and broken links ;p
Corion wonders about how/where mini-cb60 (re)writes the links ...
[Discipulus]: base_url ?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2018-05-25 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?