We don't bite newbies here... much | |
PerlMonks |
Re: Pulling random elements from hashby George_Sherston (Vicar) |
on Jun 22, 2003 at 21:17 UTC ( [id://267989]=note: print w/replies, xml ) | Need Help?? |
Yet another way to do it: print $hash{$_} for (sort {rand() <=> 0.5} keys %hash) § George Sherston
In Section
Seekers of Perl Wisdom
|
|