yes is a command-line utility that repeatedly prints text, whereas the browser-based Yes or No Generator produces an independent 50/50 Yes or No result locally in the current tab using Web Crypto.
Those tools solve different problems. A terminal command such as yes yes creates a predictable stream of the word “yes”; it does not randomly choose between alternatives. The Lizely generator is designed specifically for a casual binary prompt, with an optional question, a single current answer, and a bounded local history.

Command Line vs Online at a Glance
| Feature | Command-line yes utility | Browser-based Yes or No Generator |
|---|---|---|
| Primary purpose | Repeat a supplied string continuously | Produce a random Yes or No result |
| Random choice | No; the output sequence is deterministic | Yes; each generation uses a fresh Web Crypto value |
| Input | A fixed string passed to the command | An optional question of up to 1,000 UTF-16 code units |
| Output | A continuing sequence of text lines | One current Yes or No answer |
| History | Depends on the surrounding script or terminal | Newest-first list containing at most 20 generated entries |
| Processing location | Runs in the local terminal and any connected pipeline | Runs entirely in the current browser tab |
| Failure behavior | Shell or operating-system errors depend on the command and environment | Reports a clear failure if Web Crypto is unavailable, blocked, or throws |
| Best fit | Scripted text streams, command tests, and predictable repeated output | Casual random prompts and low-stakes two-option choices |
Run the Command-Line yes Workflow
The familiar Unix-like yes command is a stream helper, not a random decision maker. Its output can be useful in a terminal, but it should not be interpreted as a 50/50 result.
-
Open Terminal on macOS, Linux, or another Unix-like system. Check whether the utility is installed by running command -v yes. If the command produces a path, the utility is available; if the shell reports that it cannot be found, the standard command is not installed.
-
Run yes yes | head -n 5 to request five lines containing the word “yes.” The first yes invokes the utility, and the second supplies its repeated text. The head command stops the stream after five lines.
-
Change the text to yes no | head -n 5 to see an important distinction: it prints five “no” lines. It does not alternate between Yes and No, and it does not select either word randomly.
-
For a deterministic alternating sequence, run printf 'yes\nno\n' | head -n 6. This prints Yes, No, Yes, No, Yes, and No in that fixed order. The visible alternation may resemble a random sequence, but its next result is completely predictable.
-
Avoid running bare yes when the output is not connected to something such as head. It will continue printing until you stop it with Ctrl+C.
-
Use a purpose-built browser random generator instead when the task requires an actual random binary decision. The Lizely Yes or No Generator has a supported browser workflow, but no supported command-line mode.
Generate a 50/50 Result Online
The online option refers to a browser interface, not to a remote decision service. The supported workflow is straightforward:
-
Open the Yes or No Generator in a browser that can use the Web Crypto API.
-
Optionally enter a low-stakes question. Empty text is valid. The question may contain at most 1,000 UTF-16 code units: the exact boundary is accepted, while one additional code unit fails without truncating the input or generating an answer.
-
Select Generate Yes or No. The tool obtains one new Uint32 value through Crypto.getRandomValues and maps it to the displayed result.
-
Review the current answer. Editing the question clears the prominently displayed answer and any prior error so that a result generated for older wording cannot be mistaken for the revised question. Editing the question does not remove earlier history entries.
-
Use the newest-first history when you want to compare recent prompts. It retains at most 20 entries. After the twenty-first generation, the oldest entry is removed, and a cumulative message states exactly how many earlier answers have been discarded.
-
Clear the history when it is no longer needed. Clearing resets the visible entries and discarded count and also removes the current answer.
Why the Browser Mapping Is Balanced
The browser fills a one-element Uint32Array through Crypto.getRandomValues. The resulting source integer runs from 0 through 4,294,967,295. The generator then applies an unbiased finite-range mapping instead of treating the raw integer as an arbitrary probability scale.
For a Yes or No result, even source values map to Yes and odd values map to No. Because two divides 2^32 exactly, every valid Uint32 value is accepted. Each outcome is assigned exactly 2^31 source values, so ordinary binary generation does not require a rejection retry or introduce modulo bias.
The underlying mapper also supports a general number of outcomes. It calculates the largest multiple of the outcome count that fits within the 2^32 source range, rejects values at or above that limit, and maps accepted values with modulo. A maximum of 128 draws prevents a broken source from causing an endless loop. The rejection path is independently exercised at a three-outcome boundary, even though normal two-outcome generation accepts every valid source value. A deeper step-by-step Web Crypto Yes or No walkthrough explains that implementation in more detail.
The browser implementation determines its own underlying random generator. The tool does not claim access to physical true randomness or expose the browser’s generator algorithm. It also does not let the question, history, time, or previous answer influence the next mapping.
Local Data Handling and Failure Behavior
The question, generated answers, and history remain local to the current browser tab. They are never uploaded to Lizely and are not written to an account or remote service. The generation workflow requires no network call, account, or external dependency. “Online” describes the web interface; it does not mean that a server receives the question and chooses the answer.
The question text is stored locally with its generated entry exactly as entered. Trimming is used only to decide whether an empty entry should carry the history label “No question.” This behavior does not modify the retained question text.
If Web Crypto is missing, blocked, or throws an error, the generator reports a clear failure and produces no answer. It deliberately avoids a hidden Math.random() fallback, because silently changing the random source would make the displayed methodology inaccurate and the failure harder to detect.
The history is descriptive only. It does not compensate for a streak, alternate the next answer, or change the 50/50 probability. Repeated Yes results or repeated No results can occur naturally, and a small history cannot prove fairness beyond the source mapping itself.
Choosing Between the Two Workflows
-
Choose the command-line yes utility when you need predictable repeated text, a stream to pipe into another command, or a terminal workflow whose output is already defined.
-
Choose the browser-based Yes or No Generator when you need a casual, unbiased binary result generated locally in the current tab. Entering a question provides context for the prompt, but it does not affect the probability or supply advice.
-
Do not use the standard yes command as evidence of a random decision, and do not assume that repeated alternating output represents independent results.
-
For scripts that require programmatic randomness, use a purpose-built random source rather than treating this browser interface as a shell command or API.
Neither workflow is suitable for medical, legal, financial, safety-critical, emergency, security, consent, employment, eligibility, compliance, or other high-stakes decisions. A mathematically balanced answer does not validate the choices, understand consequences, or supply professional judgment, and it can still be unsuitable or harmful outside a casual setting.
For a deeper look, see Make a Line Graph Correctly With Line Graph Maker.