Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: About List::Util's pure Perl shuffle()

by BrowserUk (Patriarch)
on Jul 12, 2007 at 16:08 UTC ( [id://626269]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = ...;
    ...
    my @shuffled = shuffle @array;
    
  2. or download this
    my @array = ...
    ...
    my @shuffled = shuffle \@array;
    
  3. or download this
    my @shuffled = shuffle ... some expression generating a list ...;
    
  4. or download this
    my @shuffled = shuffle [ ... some expression generating a list ... ];
    
  5. or download this
    10 strings length 10
                    Rate     naive listutil blokhead_ref       buk blokhea
    +d   bukNew
    ...
    blokhead      804/s     9750%    3542%        9%       --          -2%
    +       -3%
    blokhead_ref  819/s     9927%    3608%       11%       2%           --
    +       -1%
    bukNew        826/s    10023%    3643%       12%       3%           1%
    +        --
    
  6. or download this
    #!/usr/bin/perl -slw
    use strict;
    ...
            };
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-18 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found