Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Non-Repetitive Random Numbers

by kcott (Archbishop)
on Apr 05, 2013 at 06:00 UTC ( [id://1027069]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E '
        my @nums = 0 .. 100000;
        say splice @nums, int(rand @nums), 1 for 1 .. 10;
    '
    
  2. or download this
    10228
    67730
    ...
    38920
    5934
    82290
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found