Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: random elements from array - new twist

by rob_au (Abbot)
on Nov 05, 2002 at 07:01 UTC ( #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
Node Status?
node history
Node Type: note [id://210401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-10-31 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?