Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 exploiting the Monastery: (6)
As of 2016-06-26 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.