Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Check randomly generated numbers have not been used before

by toolic (Bishop)
on Jun 20, 2014 at 13:39 UTC ( [id://1090634]=note: print w/replies, xml ) Need Help??


in reply to Check randomly generated numbers have not been used before

You can read all the numbers from your file and store them into a hash. Then, you can check if a random number exists in your hash. If you show us the format of your file, we can provide further guidance.
  • Comment on Re: Check randomly generated numbers have not been used before

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found