Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by BrowserUk (Pope)
on Jul 12, 2007 at 16:08 UTC ( #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
Node Status?
node history
Node Type: note [id://626269]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-30 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls