Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Non-Repetitive Random Numbers

by LanX (Chancellor)
on Apr 05, 2013 at 14:54 UTC ( #1027148=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<107> $seen{int rand 10}=1 for 1 .. 1000000
     => ""
    
      DB<108> keys %seen
     => (6, 3, 7, 9, 2, 8, 1, 4, 0, 5)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-10-01 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (575 votes). Check out past polls.