|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: picking multiple random elements out of an arrayby chipmunk (Parson) |
| on Feb 04, 2002 at 02:05 UTC ( [id://143173]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Here's an extension of the FAQ's method for selecting a random line from a file. This one selects multiple lines/entries. It keeps the selected entries in their original order.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||