True or False – Random Boolean Generator | dice83 

True or False

A random boolean. Equal probability, absolute independence. The fundamental unit of logic.

?
or press Space
Statistics
0
Total
0
True
0
False
Streak
Best
True % convergence toward 50%

The Mathematics of a Random Boolean

A boolean is the smallest possible unit of information. Two states. Nothing between them. TRUE or FALSE, 1 or 0, on or off. Each generation on this page stands completely independent of every previous one. After twelve consecutive TRUE results, the probability of TRUE on the thirteenth generation remains exactly 50%. The boolean has no memory and no preference. The mathematical term for this is independence, and it governs every fair random process.

George Boole and the Algebra of Logic

In 1854, English mathematician George Boole published An Investigation of the Laws of Thought, translating logical reasoning into algebraic notation. TRUE becomes 1. FALSE becomes 0. Conjunction (AND) becomes multiplication. Disjunction (OR) becomes a bounded addition. This framework sat largely as a mathematical curiosity for nearly a century. Then Claude Shannon recognized in his 1937 master's thesis at MIT that electrical switches implement Boolean operations natively: a closed switch is TRUE, an open switch is FALSE, series wiring performs AND, parallel wiring performs OR. Every transistor in your device right now resolves one boolean at a time, billions per second, performing the same TRUE/FALSE evaluation this page performs once per click.

One Bit of Entropy

Shannon also formalized information theory in 1948, defining the bit as the fundamental unit of information. One fair boolean generation produces exactly one bit of entropy: before generation, two equally possible outcomes exist; after, exactly one is known. Every password, every encryption key, every random number your computer produces is built from sequences of these individual bits. The boolean generator on this page produces one fresh bit of cryptographic-quality entropy per click, the irreducible quantum of uncertainty.

True Fairness

Each generation calls crypto.getRandomValues(), the Web Cryptography API specified by the W3C and built into every modern browser. This API draws entropy from hardware-level physical processes in your device: thermal noise in silicon, electrical timing jitter, and other phenomena that quantum mechanics proves are fundamentally unpredictable. A single random byte is generated. Values 0 through 127 map to one outcome; values 128 through 255 map to the other. Exactly 128 values per side. The result is a perfect 50/50 distribution, generated entirely on your device. The server never knows your outcome.

What Happens at Scale

The convergence chart above tracks the running percentage of TRUE results over your session. Early generations swing wildly. After 50 or 100 generations, the line tightens around the 50% mark. This is the law of large numbers at work: long-run frequency converges to theoretical probability. The surprising element: the longest streak of consecutive identical results in 100 generations typically falls between 5 and 10. A sequence without any streak of 6 or more would look artificially mixed. Real randomness is clumpier than intuition expects.

In the Classroom

Boolean values form the gateway to computational thinking. Project this page and run 50 generations in front of the class, tracking the convergence chart in real time. Students observe the percentage wandering erratically at first, then gradually settling toward 50%. Ask students to predict the longest streak before starting. The actual streak is almost always longer than they expect, opening a productive conversation about human intuition versus genuine randomness.

For introductory programming lessons, connect the results to conditional logic. "If the result is TRUE, stand up. If FALSE, sit down." The class physically experiences branching. Combine results across pairs: both TRUE? That is AND. At least one TRUE? That is OR. Opposite of your result? That is NOT. These four operations, applied to random booleans students just generated, form the complete foundation of digital logic. The tool requires no accounts, collects no student data, and leaves no digital trace.

Private by Architecture

This boolean generator runs entirely inside your browser. The server delivers the page. Your device provides the randomness. Your generation history lives in localStorage, stored on your machine alone. The server maintains no user accounts, stores no results, and sets no tracking cookies. Sharing this URL gives someone the identical tool. Their results come from their own device's entropy source, completely independent of yours.

Challenge a Friend

Send this link. They get the same generator, their own boolean. Compare streaks.

Design excellence, every day.

Jury-selected work from the A' Design Award, presented fresh each morning.