Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Weighted random numbers generatorby demerphq (Chancellor) |
on Mar 13, 2003 at 23:09 UTC ( [id://242883]=note: print w/replies, xml ) | Need Help?? |
I think the below is functionally the same as yours:
You could binsearch the list instead of linsearching it for a bit of speed up. --- demerphq <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
In Section
Seekers of Perl Wisdom
|
|