Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-21 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls