![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
comment on |
( #3333=superdoc: 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 reply to Re^3: rand + shift || pop
by lidden
|
|