Tiny Online Tools logoTiny Online ToolssearchSearch tools…grid_viewAll Tools
Homechevron_rightSecurity Toolschevron_rightRandom Boolean GeneratorRandom Boolean Generator

Random Boolean Generator

Generate lists of random true/false values with configurable probability and count.

Percentage chance each value is true. 50% = coin flip.

Similar Tools

Random Float Generator

Random Float Generator

Generate lists of random decimal numbers with configurable range, precision, and distribution.

Random Password List

Random Password List

Generate lists of secure passwords with configurable character sets.

Random Date Generator

Random Date Generator

Generate random dates within a specified range with options for count, format, and time.

Random Hex Generator

Random Hex Generator

Generate random hexadecimal strings and color codes instantly in your browser.

PDF Redactor

PDF Redactor

Draw black redaction boxes over sensitive areas on PDF pages directly in your browser.

Video Speed Controller

Video Speed Controller

Video Speed Controller helps you slow down or speed up a video for review, lessons, or highlights directly in your browser. Use it for fast, private media cleanup, publishing, lessons, demos, and everyday video or audio editing.

SVG Stroke to Fill

SVG Stroke to Fill

Convert SVG stroke-painted elements to fill-painted paths for better compatibility.

apps

More Tools

Browse our full collection of free online tools.

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.