Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 browsing the Monastery: (9)
As of 2014-12-27 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls