Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: randomize array

by rafl (Friar)
on Mar 29, 2006 at 01:05 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://539843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found