The Algorithm::Numeric::Shuffle is a pure Perl solution. I wrote it years ago, 5.005 era I guess. The one in List::Util
is in XS and should be much faster than the one in
Algorithm::Numeric::Shuffle. I'd go for the one in List::Util,
unless you have an old version of Perl and can't easily build
XS modules yourself.
Abigail | [reply] |
No reason beyond the fact that it was the first thing thing that came up on search.cpan.org for the term 'shuffle'. If List::Util is XS, it's almost certainly faster, so that probably is a better module to use.
---- I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
:(){ :|:&};:
Note: All code is untested, unless otherwise stated
| [reply] [d/l] |