Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Random array sorting

by ikegami (Pope)
on Dec 05, 2007 at 18:41 UTC ( #655169=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print $_, "\n" foreach (sort {int(rand(3))-1} @array); 
    
  2. or download this
    print $_, "\n" foreach shuffle @array; 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655169]
help
Chatterbox?
NodeReaper wonders through a maze of twisty little sayings, all alike

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-07-22 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (341 votes). Check out past polls.