A yes no generator cheat sheet should confirm one thing: each fresh Uint32 from Web Crypto maps evenly to Yes or No, giving each outcome 2^31 possible source values.
That is the core rule behind the Yes or No Generator, a casual binary prompt with an optional question, a current answer, and a newest-first local history of up to 20 entries. This guide summarizes the controls, exact limits, and appropriate workflow without treating a random result as advice.

The One-Page Control Reference
Start with this quick reference before using the generator:
| Control | What to do | Exact behavior |
|---|---|---|
| Question | Enter optional text or leave the field empty. | The maximum is 1,000 UTF-16 code units. Exactly 1,000 is accepted, while one code unit beyond it fails without truncation or generation. Text is stored exactly as entered; trimming only determines whether the history displays No question. |
| Generate | Select Generate Yes or No. | A successful draw uses browser Web Crypto and is added to the history automatically. If Web Crypto is missing, blocked, or throws, the tool reports a clear failure and produces no answer. |
| Current answer | Review the displayed Yes or No. | Editing the question clears the current answer and previous error so an answer cannot be mistaken for one associated with newer wording. History remains intact. |
| History | Review recent results from newest to oldest. | It holds 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 history | Use the clear-history control when finished. | It removes the visible entries, resets the discarded count, and removes the current answer. |
Leave the question blank when a simple prompt is enough. Otherwise, treat the wording only as a local label: it does not affect the odds, determine whether the text is a genuine yes-or-no question, or establish that Yes and No are the only sensible choices. The generator produces an answer but does not understand the decision behind it.
Use the Generator in Three Steps
- Write a low-stakes question, or leave the field empty. The question is optional and may contain up to 1,000 UTF-16 code units. The exact 1,000-code-unit boundary is valid, while one code unit beyond it fails without truncating the text or generating an answer. Before continuing, confirm that the decision is casual enough for a random prompt.
- Select Generate Yes or No. The tool asks the browser to fill a one-element Uint32Array through Crypto.getRandomValues and maps the resulting integer to a binary answer. If Web Crypto is unavailable, blocked, or throws, generation stops with an explicit failure. There is no hidden Math.random substitute, and no answer or failed entry is added.
- Review the current answer and recent results. Use the newest-first history if a comparison helps. Editing the question clears the current answer and prior error but keeps previous history entries. Clear the history when finished if you want to reset its visible entries, discarded count, and current answer. Use the result only as a casual prompt, never as the deciding factor in a high-stakes situation.
Why the Odds Stay 50/50
The tool obtains one 32-bit unsigned source value for each ordinary generation. Crypto.getRandomValues fills the typed array, producing an integer from 0 through 4,294,967,295. For a binary result, even values map to Yes and odd values map to No.
Worked example: 2^32 ÷ 2 = 2^31 source values assigned to each answer. That equal mapping is what the 50/50 designation means here.
The mapper is also written for a general finite number of outcomes. For N outcomes, it accepts source values below floor(2^32/N) × N, rejects values at or above that threshold, and maps accepted values with modulo. This rejection path prevents lower indexes from receiving an extra source value when the range does not divide evenly. A bounded 128-draw loop also prevents a broken source from hanging indefinitely. For two outcomes, however, 2 divides 2^32 exactly: every valid Uint32 is accepted, so an ordinary Yes or No draw does not require rejection.
Random input comes only from Crypto.getRandomValues. MDN's Crypto.getRandomValues documentation describes the browser method and its typed-array behavior, while NIST SP 800-90A Rev. 1 supplies broader random-bit-generator context. Browser implementations choose their own underlying generators; this tool neither exposes the generator algorithm nor claims access to physical true randomness.
Equal source mapping does not guarantee that a small collection of answers will contain equal numbers of Yes and No results. It also does not make the question appropriate, validate the possible choices, or provide professional judgment about consequences.
What the Recent History Records
History provides a descriptive record of recent draws, not a strategy for changing future ones:
| Signal | What it records | What it does not establish |
|---|---|---|
| Current answer | The latest mapped Yes or No. | Whether the choice is correct, wise, or likely. |
| Recent history | Up to 20 results in newest-first order. | A guarantee about future results or fairness over a small sample. |
| Repeated answer | A possible random streak. | A need to rebalance or correct the next draw. |
| Discarded count | The exact number of entries removed by the 20-entry cap. | A complete long-term record. |
Each successful generation adds an entry with its question text exactly as entered. Trimming is used only to decide whether the history should show the label No question. Once the twenty-first entry is created, the oldest is discarded and the cumulative discarded count increases accordingly.
Neither the question, the history, the current time, nor the previous answer influences the next mapping. Every new answer uses a fresh Uint32 from Web Crypto. Repeated Yes answers and repeated No answers can occur naturally; the tool does not promise alternation, prevent streaks, or compensate for an earlier result. History therefore remains useful for comparison, but it has no power over probability.
Privacy, Boundaries, and Appropriate Use
Question text, answers, and history are processed entirely in the current browser tab. They are never uploaded to Lizely and are not written to an account or remote service. No network call or account is required for the supported workflow.
When Web Crypto is unavailable, blocked, or throws, the generator reports a clear failure and produces no answer. It deliberately avoids a Math.random fallback because silently changing the random source would contradict the displayed methodology and make the failure harder to detect.
The generator is designed for casual, low-stakes prompts. Do not use it for medical, legal, financial, safety-critical, emergency, security, consent, employment, eligibility, compliance, or other high-stakes decisions. Decisions involving treatment, contracts, purchases, workplace judgments, access rights, or immediate safety require relevant information and qualified judgment rather than an unbiased coin flip.
The tool also does not learn preferences, weight alternatives, validate available choices, guarantee alternating results, prove fairness over a small sample, or predict future events. A mathematically balanced answer can still be unsuitable, unlucky, or harmful when applied outside a casual situation. Treat the result as a random prompt, not as advice or a decision authority.
Final Checklist Before You Act
Run through this quick check after generating an answer:
- Confirm the question is genuinely low-stakes and that random input is appropriate for the situation.
- Check that the question is empty or remains within the inclusive 1,000 UTF-16 code-unit limit.
- Make sure the page shows a successful answer rather than a Web Crypto failure message.
- Remember that a repeated answer is a normal possibility and does not signal that the next result must change.
- Use history only as a recent record, not as evidence of a trend or a reason to ignore the equal odds.
- Clear the history when finished if you want to remove its entries, reset the discarded count, and remove the current answer.
Related reading: Yes No Generator: Command Line vs Online.
Related reading: Yes No Generator Example: 10 Low-Stakes Prompts.