Random Boolean Generator
Produce true and false sequences with a chosen count and bias, in three output styles, plus a run-length summary.
Generate random booleans
Values: 0
True share: -
Runs: -
Longest run: -
How to use the Random Boolean Generator
- Set how many boolean values you need and drag the bias slider if true should be more likely.
- Choose the true or false, one or zero, or yes or no output style.
- Click Generate, then copy the sequence or read the run-length summary.
Features
- Up to 500 values per sequence
- Adjustable bias from zero to one hundred percent
- true and false, one and zero, or yes and no output
- Run count, run lengths and true share statistics
Advertisement
Frequently Asked Questions
Common questions about the free online random boolean generator.
It produces a sequence of true and false values, each picked independently, so you can model
coin flips or feature flags.
Set the count, choose a bias and an output style, then click Generate and copy the sequence
you need.
It sets how often true appears, so fifty percent is a fair coin while ninety means true
roughly nine times in ten.
They come from the browser's cryptographic random source and are mapped with rejection
sampling to avoid modulo bias.
True and false words, one and zero digits, or yes and no words, either one per line or
separated by commas.
A run is a group of identical values in a row. The summary counts the runs and reports the
longest one.
Randomness looks clumpy. Even a fair coin often produces runs of four or five identical
values in a few dozen flips.
Yes. The sequences are handy for populating fixtures, exercising branches and sampling
boolean feature flags.
No. Every value is generated locally in your browser, so nothing you generate is transmitted
or stored.
Yes. It is free and unlimited, needs no account, and works in any modern desktop or mobile
browser.
Last updated: October 10, 2026