laziness, impatience, and hubris | |
PerlMonks |
Re^3: About List::Util's pure Perl shuffle()by blazar (Canon) |
on Jul 12, 2007 at 09:58 UTC ( [id://626185]=note: print w/replies, xml ) | Need Help?? |
Update: runrig pointed out that my shuffle was broken. I changed $a[$n] to $x=$a[$n] to fix it. It slowed down my solution, but not by much. Ok, that's the same trick as BrowserUk's, except that in that form it's even more elegant. Anyway... c'mon! I'm not ashamed the very least to ask why does it work. I can't understand...
In Section
Meditations
|
|