in reply to Average random depth formula required
Don't bother simulating rolls, just multiply the value of each possibility by the odds of reaching it, and hope you've got a converging series.
For the simple case of a chance of stopping at each integer, its pretty simple.
∑ak = 1 / (1 - a)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Average random depth formula required
by palkia (Monk) on May 01, 2012 at 22:43 UTC | |
by SuicideJunkie (Vicar) on May 02, 2012 at 13:22 UTC | |
by palkia (Monk) on May 05, 2012 at 16:12 UTC |