Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Pick k numbers at randomby Athanasius (Archbishop) |
on Nov 12, 2019 at 13:06 UTC ( [id://11108584]=note: print w/replies, xml ) | Need Help?? |
Hello Chuma, The core module List::Util has a shuffle function which does what you want:
Sample output:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|