in reply to Re^8: an algorithm to randomly pick items that are present at different frequencies
in thread an algorithm to randomly pick items that are present at different frequencies
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: an algorithm to randomly pick items that are present at different frequencies
by efoss (Acolyte) on Jun 04, 2015 at 21:34 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2015 at 22:35 UTC | |
by efoss (Acolyte) on Jun 04, 2015 at 23:17 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2015 at 23:49 UTC | |
by efoss (Acolyte) on Jun 05, 2015 at 02:46 UTC | |
by Anonymous Monk on Jun 05, 2015 at 00:25 UTC |