Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Weighted random numbers generator

by blokhead (Monsignor)
on Mar 13, 2003 at 17:05 UTC ( #242751=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub choose_weighted {
        my $weights  = shift;
    ...
    
        return $i;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2016-09-28 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (538 votes). Check out past polls.