Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Fisher-Yates Shuffle

by RichardK (Parson)
on Jun 02, 2014 at 13:33 UTC ( #1088263=note: print w/replies, xml ) Need Help??


in reply to Re^2: Fisher-Yates Shuffle
in thread Fisher-Yates Shuffle

That doesn't look right, now you're decrementing $i twice in each ROBO loop. Isn't that only doing half the work , hence taking half the time?

Replies are listed 'Best First'.
Re^4: Fisher-Yates Shuffle
by roboticus (Chancellor) on Jun 02, 2014 at 14:20 UTC

    RichardK:

    You're right. My code is all screwed up at the moment. I'll try to fix it correctly when I get off work today. <sigh...>

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088263]
help
Chatterbox?
[Discipulus]: neurocent goes always up with the same curve of population raise
[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 ...

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?