There's probably a CPAN module that does it.
I have a similar problem and already searched CPAN, but couldn't find anything. Any ideas how such an algorithm might be called?
In reply to Re: Weighted random numbers generator
by crenz
in thread Weighted random numbers generator
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |