little math/programming problems April 2023
|
05-12-2023, 06:14 PM
Post: #8
|
|||
|
|||
RE: little math/programming problems April 2023
(05-02-2023 08:03 PM)David Hayden Wrote: int sides[6] = {0,0,0,0,2,3}; For a rough idea of expected values, we may try a simple "random" generator. 5 dices, with cycled pattern, different initial state: Code: 000023000023000023000023000023000023 ... Pattern Note that 6 throws add to sum of only 5, sequence will always terminate. Expected values = (3 + 4 + 5 + 6 + 7 + 6) / 6 = 31/6 ≈ 5.2 This "random" generator is super lumpy, with maximal 4 0's in a row. We expected true expected values slightly bigger. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 13 Guest(s)