Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-04-02 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (53 votes), past polls