Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Non-Repetitive Random Numbers

by BrowserUk (Pope)
on Apr 05, 2013 at 14:32 UTC ( #1027141=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    seed : no.of picks before repeat
    89 : 12
    ...
    4202 : 20
    -- More  --
    
  2. or download this
    #! perl -slw
    use strict;
    ...
        ++$hash{ int rand 100000 } == 2 and print "$i : ", scalar keys %ha
    +sh
            while keys %hash < 30;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027141]
help
Chatterbox?
[erix]: ouch (more monday misery)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2016-12-05 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (88 votes). Check out past polls.