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

Re: random number

by traveler (Parson)
on Dec 13, 2002 at 08:30 UTC ( [id://219531]=note: print w/replies, xml ) Need Help??


in reply to random number

You can just shuffle the list. Use
use Algorithm::Numerical::Shuffle qw /shuffle/; @shuffled = shuffle (1..100);
or
@shuffled = shuffle (3,7,19,1000,44);
You can also shuffle a list in place.

HTH, --traveler

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found