Is my understanding of the "return" block correct?
Yes. A quick read of your comments suggest you've got that bit perfectly.
However, as you are passing the values/odds into the sub via hash (instead of reading them from a file), then you'll need to show me your whole definition of genPickerConverted() so I can see what's going on before the bit you've posted.
In reply to Re^9: an algorithm to randomly pick items that are present at different frequencies
by BrowserUk
in thread an algorithm to randomly pick items that are present at different frequencies
by efoss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |