Timeline for Random number in a range, biased toward the low end of the range
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 20, 2016 at 11:39 | comment | added | Lie Ryan | The curve here only matches what you want only if the probabilities of each numbers are a small integer ratio with each other. There are many cases where you may want a non-integer distribution probabilities. In this particular implementation, for example, 8,9,10 have the exact same probability of occurring. | |
| Feb 19, 2016 at 0:46 | comment | added | MichaelS | @DMGregory: Two differences. First, this one is more time efficient (the data already exists at runtime, and doesn't need to be created). Second, you can tweak the curve precisely as you see fit, instead of trying to come up with some formula or logic that approximates the curve you're going for. | |
| Feb 19, 2016 at 0:17 | review | First posts | |||
| Feb 19, 2016 at 5:25 | |||||
| Feb 19, 2016 at 0:16 | comment | added | DMGregory♦ | This is effectively Vaillancourt's answer, but without the method to generate the desired table without specifying every entry explicitly. | |
| Feb 19, 2016 at 0:13 | history | answered | Jezzamon | CC BY-SA 3.0 |