3tej home
← All Games

What is Probability Simulator?

A Probability Simulator computes probability simulator from the inputs you provide. It applies the standard formula to the values you enter and returns the result instantly, without sending any data to a server. See probability convergence. The tool runs entirely.

Probability Simulator

Roll N dice / flip N coins. Watch convergence.

🎮 How to Use

  1. Pick: Coin, Single Die, or 2 Dice.
  2. Click +1 / +10 / +100 / +1000 to run that many trials.
  3. Watch frequencies converge to theoretical probabilities (law of large numbers).

About this tool

Watch the law of large numbers in action. Each roll/flip is independent. Over many trials, observed frequencies converge to theoretical probabilities. After 10 flips, ratios can be wildly off; after 1000+, they stabilize.

About probability simulation

A probability simulator runs a random experiment, such as flipping a coin or rolling dice, thousands of times and tallies how often each outcome appears. It is a hands-on way to watch the law of large numbers at work: over a short run the observed frequencies wander all over the place, but as the trial count grows they settle toward the fixed theoretical probability. A fair coin should land heads 50 percent of the time, a single six-sided die should show each face one-sixth of the time, and the sum of two dice follows a triangular distribution that peaks at 7.

The phrase "snake eyes" comes from craps and refers to rolling two ones on a pair of dice, the lowest possible total. There is exactly one way to roll it out of 36 equally likely combinations, so its probability is 1/36, roughly 2.78 percent. The simulator lets you confirm that figure empirically: roll the 2-dice mode a few thousand times and watch the count for the total of 2 converge toward that 1-in-36 rate.

How it works

Each trial uses the browser's pseudo-random generator to pick an outcome with equal weighting, then increments a counter. The observed probability of any outcome is simply its count divided by the total number of trials.

Theoretical probability  P(outcome) = favourable outcomes / total outcomes
Observed probability      f(outcome) = count(outcome) / N trials
Law of large numbers      f(outcome) -> P(outcome)  as N -> infinity
Snake eyes (two dice = 2)  P = 1/36 = 2.78%
Any single die face        P = 1/6  = 16.67%
Fair coin (heads)          P = 1/2  = 50%

The expected absolute error shrinks in proportion to 1 over the square root of N. That is why ratios after 10 trials can be wildly off, yet after 1,000 or more they look stable to within a percentage point or two.

Worked example

Suppose you select the 2-dice mode and click +1000 four times, for 4,000 total rolls. You are watching the total of 7, the most likely sum.

  1. Favourable outcomes for a 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) which is 6 combinations.
  2. Theoretical probability: 6 / 36 = 0.1667, or 16.67 percent.
  3. Expected count in 4,000 rolls: 4,000 x 0.1667 = about 667.
  4. Typical observed range: roughly 630 to 700, since random noise of a few percent is normal at this sample size.
Result: The total of 7 should appear near 667 times in 4,000 rolls, while snake eyes (total of 2) should appear near 111 times. The more trials you run, the tighter both percentages hug their theoretical values.

Two-dice probability reference

Rolling two six-sided dice gives 36 equally likely combinations. The table shows how many ways each total can occur and its probability.

TotalCombinationsProbabilityPercent
2 (snake eyes)11/362.78%
322/365.56%
433/368.33%
544/3611.11%
655/3613.89%
766/3616.67%
855/3613.89%
9 to 124, 3, 2, 1mirror of 5 to 211.11% down to 2.78%

Common pitfalls

  • Expecting balance too soon. After 10 coin flips a 7-to-3 split is completely normal. Convergence needs hundreds or thousands of trials, not dozens.
  • The gambler's fallacy. A run of five heads does not make tails "due". Each flip is independent, so the next flip is still 50/50 regardless of history.
  • Confusing the count gap with the percentage gap. As trials grow the raw difference between heads and tails counts can widen even while the percentage gap shrinks toward zero.
  • Assuming all dice totals are equally likely. A 7 is six times more likely than a 2 with two dice, because more combinations add up to 7.
  • Reading a pseudo-random generator as truly random. Browser randomness is good enough for games and demos but is not cryptographically secure.
  • Stopping at a lucky moment. If you halt the run exactly when a frequency happens to match theory, you are cherry-picking rather than observing genuine convergence.

Frequently asked questions

What are the odds of rolling snake eyes?

Snake eyes means both dice show a one, which is exactly one outcome out of 36 equally likely combinations. The probability is 1/36, or about 2.78 percent. It is the rarest single total you can roll with two dice, tied with rolling a total of 12 (both sixes).

Why don't my coin flips reach exactly 50/50?

Real random sequences fluctuate. Over a small number of flips the ratio can sit far from 50 percent, and even over thousands of flips you will rarely land on an exact split. What the law of large numbers promises is that the percentage gets closer to 50 percent as you add more trials, not that it hits it perfectly.

How many trials do I need to see convergence?

For a coin, a few hundred flips usually pull the heads percentage within a couple of points of 50. For two-dice totals, run at least 2,000 to 5,000 rolls so even the rare totals like 2 and 12 collect enough samples to look stable. The error shrinks with the square root of the trial count.

Is each roll truly independent?

Yes. The simulator generates each outcome fresh, with no memory of previous rolls. A streak of one result has no influence on the next, which is the core idea behind avoiding the gambler's fallacy.

Are my results saved or sent anywhere?

No. Every trial runs in your browser using JavaScript, and the counts live only in the open tab. Nothing is uploaded, logged, or stored on a server, and refreshing the page resets the tally.

CT
3Tej Editorial
Free, browser-based tools -.