Keep It Simple, Stupid | |
PerlMonks |
Selecting random records from an arrayby Anonymous Monk |
on Jun 03, 2003 at 21:15 UTC ( [id://262794]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I need to select 75% of the records in an array at random. I was thinking of using some for loops combined with rand but, does anyone know a quick and better way of doing this? Thanks, Ralph.
Back to
Seekers of Perl Wisdom
|
|