There's more than one way to do things | |
PerlMonks |
Re: random elements from array - new twistby Theseus (Pilgrim) |
on Nov 05, 2002 at 14:21 UTC ( [id://210463]=note: print w/replies, xml ) | Need Help?? |
Call me crazy, but wouldn't this be a much more simple solution? This results in your 5 random elements from the array being the 5 elements in %hash;
In Section
Seekers of Perl Wisdom
|
|