Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: random elements from array - new twist

by rob_au (Abbot)
on Nov 05, 2002 at 07:01 UTC ( [id://210401]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub pick (\@) {
        my $array = shift;
    ...
    my @results = ();
    push @results, pick @array for 1..5;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://210401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found