![]() |
|
"be consistent" | |
PerlMonks |
Re^2: Randomize elements among several arrays, while maintaining original array sizes.by Roy Johnson (Monsignor) |
on Aug 01, 2008 at 19:07 UTC ( #701760=note: print w/replies, xml ) | Need Help?? |
Brilliant!
Note that you can swap without temp variables: You can even use List::Util 'shuffle':
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|