Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: random number

by traveler (Parson)
on Dec 13, 2002 at 08:30 UTC ( #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
Node Status?
node history
Node Type: note [id://219531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-12-01 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?