![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: rand + shift || popby lidden (Curate) |
on Dec 21, 2010 at 15:58 UTC ( #878294=note: print w/replies, xml ) | Need Help?? |
Shuffleing is O(n) and spliceing is O(1), this may matter if your array is large. Update: Oops, my understanding of splice was wrong. See JavaFan and ikegami below.
In Section
Seekers of Perl Wisdom
|
|