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

Re: shuffle split

by szbalint (Friar)
on Jan 31, 2006 at 12:17 UTC ( #526729=note: print w/replies, xml ) Need Help??


in reply to shuffle split

From perldoc -q shuffle:

How do I shuffle an array randomly?

If you either have Perl 5.8.0 or later installed, or if you have Scalar-List-Utils 1.03 or later installed, you can say:

use List::Util 'shuffle'; @shuffled = shuffle(@list);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://526729]
help
Chatterbox?
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-07-17 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (353 votes). Check out past polls.

    Notices?