Original interactive / Fixed-seed probability
Change the gate.
Measure the wait.
One game ends on the first turn that includes your target face. The successful turn counts. With bonus rolls on, a six adds another roll within the same turn unless it is itself the winning target.
Seed 361205. The same rules and seed always reproduce the same sample. Nothing is saved or sent anywhere.
Theory is shown. Run the sample to compare its mean, variance and every histogram bar.
The final bar gathers 13 or more turns, so the visible distribution includes the whole tail rather than cutting off long waits.
Separate the roll from the rule around it.
A fair six-sided die supplies six equally likely outcomes. A game rule then decides which outcomes matter. “Roll a six to start” sounds like a property of the die, but the waiting time comes from combining that die with a stopping rule. Change the stopping rule and the same stream of faces can produce a different game.
Our demo calls one attempt a turn. A game ends on the first turn that contains the chosen target, and that successful turn is included in the count. Without bonuses, a turn contains exactly one roll. With “a six grants another roll” enabled, a turn can contain several rolls. Naming that unit matters: counting individual rolls would answer a different question.
Try the default target of six first. Predict how often a game finishes on turn one, then run the sample. The theoretical chance is 1/6, or about 16.7%. The other five faces all fail, so reaching turn two requires that first failure. The histogram makes those successive failures visible instead of reducing the experience to a single average.
The geometric distribution counts the whole wait.
Repeated independent trials with a constant success probability, stopping at the first success, produce a geometric waiting time. OpenStax’s Introductory Statistics uses exactly this convention: the random variable includes the successful trial. If the success probability on a turn is p, the chance of first succeeding on turn t is (1 − p)^(t − 1) × p. The earlier failures and the final success are all part of that one outcome.
The expected value is 1/p, and the variance is (1 − p)/p². For the default gate, those give a mean of 6 turns, a variance of 30, and a standard deviation of about 5.477 turns. That spread is substantial. A mean of six does not promise a neat cluster around six.
The final bar is also calculated, not discarded. The chance of waiting 13 turns or more equals the chance of 12 consecutive failed turns: (5/6)^12, about 11.2%. Long waits are therefore part of an ordinary fair model rather than evidence that a particular die must be broken.
A reroll changes the probability of a successful turn.
Choose a target other than six and enable the bonus. Now a turn has two ways to end without success: rolling one of the four faces that are neither the target nor six. A target succeeds, while a six keeps the turn alive. Repeated sixes simply extend that same turn.
Within this extended turn, the target and an ordinary failure compete while sixes are set aside. Conditional on the turn ending, the target’s probability is (1/6) ÷ (5/6) = 1/5. The waiting-time distribution is still geometric, but its turn probability is now one fifth. The theoretical mean becomes 5 turns and the variance becomes 20.
Switch the target to six and the bonus stops mattering: the first six succeeds immediately, so no bonus roll follows. This comparison shows why “an extra roll is always helpful” is too vague. A rule’s effect depends on the state in which it triggers and on whether the triggering face would already have succeeded.
Use the sample as a check, not as the formula.
The simulation uses seed 361205 and a small deterministic number generator. Every face comes from the next number in that sequence. Repeating the same settings reproduces every game, including its bonus rolls and final waiting time. A fixed seed is useful for reviewing a change because the implementation, rather than a fresh random sample, becomes the thing being compared.
With the default rules, the included seed gives a sample mean of 5.875 turns. That is close to, but not exactly, six. A rough scale for the standard error of this mean is √(30/10000) ≈ 0.055, so a difference of 0.125 is unsurprising. The independent tests allow for sampling variation while checking the theoretical distribution itself exactly.
The sample variance is displayed beside its theoretical value for the same reason. Looking only at averages can hide an implementation that gets the centre roughly right but produces the wrong tail. Comparing every bar gives a broader check, while the fixed sample makes any discrepancy repeatable and inspectable.
How rules amplify or soften luck.
A rare required face lengthens the wait, but the more important design question is what a player does during it. If there is no choice, a long tail is simply waiting. A reroll, an alternative target, or progress earned on a failed roll can soften that tail or make the time useful. Conversely, several independent gates multiply opportunities for delay when all of them are required.
Designers can compare these changes honestly by holding the input sequence and other rules constant. Change one threshold, inspect both mean and distribution, then decide how much uncertainty the player can act on. The number-gate model shows the contrasting deterministic case: the same choices always carry the same number. The idle-loop model also uses expectations over time, but its advances are calculated rather than sampled.
For another exercise in distinguishing an event from its interpretation, explore the memory demonstration. Here, remember the probability statement, not a supposed pattern in past faces. Return to How games work to compare all the models.
Sources and method.
- OpenStax, Introductory Statistics: 4.4 Geometric Distribution — independence, stopping at the first success, the mean and variance.
- Wolfram MathWorld: Geometric Distribution — distribution definitions and moments. This page uses the convention that counts the successful trial.
- DelionPlay public game catalog API — the example title and returned
playUrl, checked through cursor pagination on 5 December 2026.
All numerical results for the two rules and the fixed sample were calculated by this page’s original pure functions. Read our editorial standards for the distinction between sourced facts and reproducible demonstrations.
Questions to try next.
Does a failed run of rolls make the target more likely next time?
Not in this model. Every individual roll is independent and has the same six equally likely faces. The geometric distribution describes the whole waiting time, but it does not give the die a memory or make a target due after failures.
Why is the average wait for a specified face six turns?
Without bonus rolls, one turn is one roll and the chance of success is one sixth. For a geometric waiting time that includes the successful trial, the expected value is one divided by that probability: 1 ÷ (1/6) = 6 turns. A particular game can still finish sooner or much later.
Why does a bonus on six not shorten the wait when the target is six?
The first six already ends the game, so there is no failed six that could earn a bonus. When the target is another face, however, a six keeps the current turn alive and gives the target another chance before the next turn begins.
Does 10,000 matching results prove the theory?
No. A reproducible sample checks that the implementation behaves sensibly and makes sampling error visible. The formulas are justified by the probability model, not by a vote from simulated games. Changing the seed changes the sample but leaves the theory untouched.