Random Boolean Generator
Generate batches of random true/false values with a click. Configure how many you need and how likely each result is to be true — from a fair 50/50 coin flip to heavily skewed distributions.
When you need random booleans
- Unit tests — seed test fixtures with realistic mix of true/false flags.
- Simulations — model binary events with a known probability (70% success rate, 10% packet loss, etc.).
- Data mocking — populate boolean columns in CSV seeds or JSON fixtures.
- Probability education — visually confirm that 100 coin flips produce roughly 50% heads.
- UI testing — generate checkbox states for rendering stress tests.
Probability control
The slider sets the probability that each value will be true:
- 50% — unbiased coin flip, expected half true half false.
- 10% — rare event: roughly 1 in 10 will be
true. - 90% — common event: roughly 9 in 10 will be
true. - 0% / 100% — constant false / constant true (useful for baseline tests).
Each value is independently drawn — past results don't affect future ones.
Randomness
Each value is drawn using crypto.getRandomValues (the browser's CSPRNG), so results are uniformly distributed and cryptographically unbiased. For 5,000 values at 50% probability, expected true count ≈ 2,500 ± ~35 (within 1 standard deviation).
Output
Results appear live as you adjust the inputs. Copy-all puts every value on its own line. Download saves booleans.txt.
Privacy
All generation happens in your browser. Nothing is sent to a server.
Tiny Online Tools







