Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Very Large Arrays

by lidden (Curate)
on Feb 14, 2012 at 09:49 UTC ( #953665=note: print w/replies, xml ) Need Help??


in reply to Very Large Arrays

Not directly related to you problem, but Perl comes with a built in shuffle.
use List::Util 'shuffle'; my @A = qw- 1 2 3 4 -; @A = shuffle @A; say "@A";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953665]
help
Chatterbox?
[choroba]: Google suggests Bytes::Random:: Secure, but it's so 2015

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2016-12-06 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (102 votes). Check out past polls.