Guides

How Does the Yes or No Generator Decide?

See how the Yes or No generator decides: its pseudorandom algorithm, equal Yes and No chances, input and output cells, and why it is not for major decisions.

Miryori Editorial Team3 min read
Try the Yes or No Generator

A "Yes" or "No" appears the instant you click reload, which makes the tool look as though it is weighing your question. It is not. The answer comes from a tiny piece of code behind the interface, and understanding that code tells you exactly what the generator can and cannot do.

The Yes or No generator decides by returning a rounded pseudorandom number. Its generatorResult function computes Math.round(Math.random()): Math.random() supplies a pseudorandom number and Math.round() reduces it to the integer 0 or 1, which triggers the display of a "Yes" or "No" image. The two outcomes are equally likely under this rounding rule, and the function performs no analysis of your question at all.

What algorithm produces the Yes or No answer?

The calculator defines one equation, result = generatorResult(x), and its custom JavaScript defines that function as a rounded random draw. Written out, the mechanism is:

result=generatorResult(x)=round(random())∈{0,1},P(Yes)=P(No)=12\text{result} = \mathrm{generatorResult}(x) = \mathrm{round}(\mathrm{random}()) \in \{0,1\}, \qquad P(\text{Yes}) = P(\text{No}) = \tfrac{1}{2}

Because a random draw is rounded to the nearest whole number, values below the midpoint round one way and values at or above it round the other; with a uniformly distributed draw, each of the two answers has a 50% chance.

Calculator element Value recorded in the source
Input variable x, numerical, default 1
Output variable result, numerical, forced output
Equation result = generatorResult(x)
Random source Math.random() — a pseudorandom number
Rounding step Math.round(...) — returns 0 or 1
Display A "Yes" or "No" image triggered by the number

Is the generator truly random?

No. The source is explicit that the algorithm only generates a pseudorandom number, which then triggers the display of a yes or no image — not a genuinely random physical event. The result is a computer-generated value produced by the rounding rule above. From the user's point of view the answer is unpredictable and changes from click to click, but it remains a pseudorandom output rather than a sign, prediction or judgement about the question you asked.

Can I trust the answer for an important decision?

Only as a motivator or a game. The source says you probably use the tool because you struggle to answer the question yourself, and calls it a great motivator and a fun tool for random questions and games. It also warns that behind the interface is a computer algorithm whose entire knowledge is how to say "Yes" or "No" at random. Before making a big decision that may seriously affect your life, the source tells you to consider all the facts instead of relying on the generated answer.

Worked example: tracing one pseudorandom draw

Suppose a click feeds the function a pseudorandom draw of 0.37. Rounding it gives 0, because it sits below the 0.5 midpoint. A second click might draw 0.82, which rounds to 1 because it sits at or above the midpoint. Each integer triggers one of the two displayed answers, and each new click runs the function again with a fresh draw — which is why the source invites you to reload for a new random answer. The draws here illustrate the rounding rule; the tool does not reveal them to you.

Frequently Asked Questions

Why do I get a different answer when I click again?

Each reload runs generatorResult(x) again, taking a new pseudorandom draw. The usage instructions describe exactly this: click the reload button again to get a new random answer.

What does "pseudorandom" mean in this tool?

It means the number comes from the algorithm's random-number function rather than from a genuinely random event. The source makes this distinction when explaining what happens behind the interface.

Does the generator know anything about my question?

No. It only generates the words "Yes" or "No" randomly; there is no link between the wording of your question and the value returned by the algorithm.

References

  • Omni Yes or No Generator custom JavaScript: generatorResult, Math.random() and Math.round().
  • Omni entry variables x and result, cells, and the equation result = generatorResult(x).
  • Omni section "Can I trust the decision of the yes or no generator?" (pseudorandom number, motivation, decision caveat).
Calculator

Yes or No Generator

Calculate Yes or No with practical leisure & entertainment formulas, interactive references and step-by-step results. Free, fast and private.

Try the Yes or No Generator