Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Fisher-Yates Shuffle

by RichardK (Priest)
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?


Comment on Re^3: Fisher-Yates Shuffle
Re^4: Fisher-Yates Shuffle
by roboticus (Canon) 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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-12-26 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (172 votes), past polls