Yes or No Generator
A yes or no answer drawn from the browser's built-in pseudorandom generator, 50 percent each by default. An optional Maybe outcome takes a share from 1 to 50 percent and splits the rest evenly, so a 10 percent Maybe leaves Yes and No at 45 percent each, and the last 100 answers stay in a history log.
This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.
Documentation
A yes or no generator returns a random answer to a question with two outcomes. The answer does not depend on the question: the text is kept only to label the history, and the same question can come back Yes one time and No the next. With no Maybe outcome, each answer is a fair coin toss, Yes and No at 50 percent each.
The optional question labels its answer in the history. Settings holds the three options that change the result or its display: a Maybe outcome with its share in whole percent from 1 to 50, the reveal animation, and whether the history list is shown. A share outside that range is pulled to the nearest limit and the corrected value replaces the one on screen, so the odds in use are always the odds displayed. The Enter key in the question box also produces an answer.
Each answer draws one number r, uniform between 0 and 100, from Math.random, the pseudorandom generator built into every browser. Without Maybe, r below 50 is Yes and anything else is No. With a Maybe share p, r below p is Maybe, r from p up to p + (100 - p) / 2 is Yes, and the rest is No, which leaves Yes and No at (100 - p) / 2 percent each. Math.random is fine for games and everyday choices but is not a cryptographic source, so it is unsuitable for drawings with money or legal weight. The reveal animation flashes 8 to 12 decoy frames 80 milliseconds apart, 0.64 to 0.96 seconds in all, but the final answer is drawn before the first frame, so the flicker has no influence on it.
Random answers arrive in streaks. Three Yes answers in a row happen one time in eight (0.5 x 0.5 x 0.5 = 12.5 percent) and say nothing about the question. The history keeps the most recent 100 answers, newest first and numbered, in the browser's local storage; Clear History empties that list without touching the settings, and Reset clears both.
With Maybe at 20 percent, the bands run 0 to 20 for Maybe, 20 to 60 for Yes, and 60 to 100 for No, so a draw of r = 37 is Yes, and Yes and No each have a 40 percent chance. At a 10 percent Maybe share, the chance of at least one Maybe in 10 answers is 1 - 0.9^10 = 1 - 0.3487 = 65.1 percent, and the expected wait for the first Maybe is 1 / 0.1 = 10 answers.
A random yes or no answer removes deliberation from low-stakes choices and adds an element of chance to games, challenges, and group activities. Below are practical scenarios where a quick binary decision proves useful.
- Daily decisions: Settle everyday dilemmas like choosing between cooking at home or eating out, picking a movie genre for the evening, or deciding whether to take the scenic route to work. The generator breaks the tie when both options feel equally appealing.
- Party games: Run a truth-or-dare variant where the generator picks whether a player answers a truth question or performs a dare. Each player's question goes in before the reveal, and the animation adds a moment of suspense.
- Classroom activities: Teachers can randomly assign debate sides, select which team presents first, or decide the order of group activities, with the result on a shared screen. Logging 50 answers and comparing the Yes count with the expected 25 also demonstrates sampling variation: the standard deviation of that count is the square root of 50 x 0.5 x 0.5, about 3.5 answers.
- Creative writing prompts: Authors facing a plot fork can pose the decision point ("Does the character open the door?") and let the generator choose the narrative path. Repeated answers explore branching storylines, and the history log records which paths were taken.
- Fitness and wellness: Decide whether to add an extra set at the gym, take a rest day, or try a new exercise. Committing to the answer for a week builds variety into a routine without re-deciding each day.
- Meeting facilitation: When a team cannot reach consensus on a minor procedural question, such as which topic to address first or whether to extend a meeting by ten minutes, a quick random answer keeps the discussion moving without prolonged debate.
- Coin-flip replacement: A digital toss records every result in the history, which a physical coin does not. The outcome cannot be independently verified, so it suits informal calls rather than disputes.
- Trivia and quiz nights: A Maybe share turns the toss into a three-outcome round. At 20 percent Maybe, a bet on Maybe pays fair odds of 4 to 1 and a bet on Yes or No pays 3 to 2.
Inputs, outputs, and what the Yes or No Generator computes
What the Yes or No Generator asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.
Inputs
- Type a yes or no question (optional) (text input)
- Include "Maybe" as a possible answer · default: off
- Maybe probability (%) (numeric input) · default: 10 · range: 1 to 50
- Animate answer reveal · default: on
- Show answer history · default: on
Controls
Generate · Reset · Clear History
Example
With Maybe at 20 percent, the bands run 0 to 20 for Maybe, 20 to 60 for Yes, and 60 to 100 for No, so a draw of r = 37 is Yes, and Yes and No each have a 40 percent chance.