Coin Flipper
Professional-grade boolean generator. Features true-physics 3D simulation, bias adjustment (weighted probability), multi-coin consensus, and real-time binomial distribution analytics.
About
Decision fatigue is a cognitive bottleneck in high-stakes environments. This tool provides a deterministic chaos engine to resolve binary disputes, test probability models, or conduct impartial sampling. Unlike standard pseudo-random generators that simply output a text string, this application simulates the physical dynamics of a Bernoulli trial - the mathematical definition of a coin toss.
Accuracy is paramount in statistical modelling. Browser-based Math.random() implementations vary in entropy quality. This tool utilizes a cryptographic-strength randomizer to ensure uniform distribution, critical for developers testing binomial algorithms or Game Masters requiring truly unbiased outcomes. For educational and experimental purposes, the engine supports "Weighted Biasing", allowing the introduction of specific probability curves to demonstrate variance and the Gambler's Fallacy.
The interface is optimized for high-frequency usage with keyboard shortcuts (Spacebar) and instant visual feedback. Accessibility compliance (WCAG 2.1) ensures that screen readers receive immediate state changes, making statistical generation available to all users.
Formulas
The core mechanic of this tool relies on the Bernoulli Distribution for a random variable X, where X=1 represents Heads and X=0 represents Tails.
For Batch Simulations (checking distribution over time), we utilize the Standard Error of the Proportion (SE) to determine if the random number generator is functioning within statistical norms:
When the "Weighted" mode is active, the acceptance threshold T shifts from the median:
Reference Data
| Event Type | Probability Formula (P) | Standard Deviation (σ) | Expected Variance (100 flips) |
|---|---|---|---|
| Single Fair Flip | P(H) = 0.5 | 0.5 | ± 5 |
| Sequence (H,H,H) | 0.53 = 0.125 | N/A | ≈ 12 occurrences |
| Weighted Flip (70% Heads) | P(H) = 0.7 | √p(1−p) ≈ 0.458 | ± 4.6 |
| At least 1 Head in n flips | 1 − (1−p)n | Variable | Converges to 1 |
| Gambler's Ruin | 1 − (q/p)i1 − (q/p)N | High Volatility | Dependent on Bankroll |
| Perfect 50/50 Split | nCk ⋅ pkqn-k | Decreases as n ↑ | ≈ 8% Chance (n=100) |
| Streak of 10 Heads | (1/2)10 | Rare Event | 1 in 1024 trials |
| Quantum Superposition | 1√2(|H> + |T>) | Undefined | Observation Collapse |