Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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


Comment on Re: randomize array
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://539843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-08-23 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls