Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: randomize array

by rafl (Friar)
on Mar 29, 2006 at 01:05 UTC ( #539843=note: print w/replies, xml ) Need Help??


in reply to randomize array

How about

use List::Util qw(shuffle); my @shuffled_usernames = shuffle(@usernames);

Cheers, Flo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://539843]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-02-21 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (320 votes). Check out past polls.