in reply to Re: How do I shuffle an array?
in thread How do I shuffle an array?
Math::Random::MT::Auto has a shuffle function, as well:
Remember: There's always one more bug.
use Math::Random::MT::Auto 'shuffle'; my @cards = 0..51; shuffle(\@cards);
Remember: There's always one more bug.
|
---|
In Section
Seekers of Perl Wisdom