Ir al contenido
Number Buffet

Tiradas de moneda

Lanza una moneda justa — o deliberadamente cargada — tantas veces como quieras, con recuentos acumulados y la racha más larga.

3 min de lectura

Ajustes

Ajustes rápidos

Leave at 0.5 for a fair coin. Lower or raise it to model a weighted one.

Combine flips into blocks — 8 with the 1 / 0 format gives you random bytes.

The whole sequence follows from this, so a shared link flips the same way every time.

Afinar el aspecto

Elige primero un estilo junto a la imagen: estos controles lo ajustan.

Frame

A border drawn inside the edge of the image.

Avanzado

Resultados

20 valores

Heads, Heads, Tails, Heads, Heads, Heads, Heads, Tails, Tails, Tails, Tails, Heads, Heads, Tails, Tails, Tails, Tails, Tails, Tails, Heads

9 heads and 11 tails in 20 flips — 45.0% heads. Longest streak: 6 tails in a row. That is 0.45 standard deviations from the 10.0 heads expected at this weighting. Seeded with "buffet", so this exact sequence is reproducible.


Crear una imagen

Activa JavaScript para dar estilo a estos números y descargarlos como imagen. Los valores están listados arriba.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

El artículo de fondo de más abajo aún no está traducido y se muestra en inglés.

Sobre tiradas de moneda

The game is older than the theory. Romans called it navia aut caput — "ship or head" — after the ship's prow and the portrait that appeared on opposite faces of their coinage. Medieval English sources call the same game "cross and pile", after the cross stamped on one face and the pile, the name for the lower of the two dies used to strike a coin. For most of that history a toss was not a model of chance so much as a way of handing a decision to something outside human argument.

Treating it as a mathematical object came later. Girolamo Cardano's Liber de ludo aleae, written in the 1560s but not printed until 1663, was the first systematic attempt to compute odds in games of chance. Jacob Bernoulli's Ars Conjectandi, published posthumously in 1713, supplied the result that makes a coin useful: as the number of trials grows, the observed proportion of heads converges on the true probability.

The most quoted empirical check was made under duress. John Kerrich, a South African mathematician, was interned in Denmark after the German invasion in 1940, and passed some of that time flipping a coin 10,000 times. He recorded 5,067 heads — 50.67% — and published the running tallies in 1946 as An Experimental Introduction to the Theory of Probability. The graph of that proportion settling towards one half is still reproduced in statistics textbooks.

Physics has since complicated the picture. Persi Diaconis, Susan Holmes and Richard Montgomery argued in 2007 that a hand-flipped coin wobbles as it spins, spending slightly longer with its starting face upward, and predicted it should land the same way up as it started about 51% of the time. A team led by František Bartoš later tested this with 350,757 recorded flips and reported 50.8%, with a credible interval excluding an even split. A real coin is fair about which face shows; it is very slightly unfair about changing.

Propiedades clave

  • Each flip here is an independent Bernoulli trial, so the number of heads in n flips follows the binomial distribution B(n, p).
  • For a fair coin the expected number of heads in n flips is n/2 with standard deviation √n / 2 — about 50 either side of 5,000 in 10,000 flips.
  • Exactly 500 heads in 1,000 fair flips has probability only about 2.5%, even though it is the single most likely count.
  • The longest run of identical outcomes grows roughly with the logarithm of the number of flips, so a streak of nine or ten somewhere in a thousand flips is ordinary rather than remarkable.
  • Past flips carry no information about the next one; the belief that a run of heads makes tails "due" is the gambler’s fallacy.
  • A coin with any fixed, unknown bias can still yield perfectly fair bits by von Neumann’s trick: flip twice, read heads-then-tails as 0 and tails-then-heads as 1, and discard the two matching pairs.
  • The law of large numbers guarantees the observed proportion converges on p, but says nothing about the absolute gap between heads and tails, which typically grows like √n.
  • These flips come from a deterministic PRNG seeded by the text you supply, so they are reproducible by design and unsuitable for anything that needs unpredictability.

Dónde aparecen

  • In 1845, in Francis Ermatinger’s house in Oregon City, Asa Lovejoy of Boston and Francis Pettygrove of Portland, Maine settled the name of their new town with a best-of-three penny toss. Pettygrove won; the 1835 coin is held by the Oregon Historical Society.
  • On 14 December 1903 the Wright brothers tossed a coin at Kitty Hawk to decide who would fly first. Wilbur won and his attempt stalled seconds after leaving the rail; Orville made the successful flight three days later.
  • The UEFA Euro 1968 semi-final between Italy and the Soviet Union finished 0–0 in Naples and, under the rules of the day, was decided by a coin toss. Italy went through and won the tournament.
  • Cryptography has a formal version of the problem: Manuel Blum’s "coin flipping by telephone", presented at CRYPTO ’81 and published in SIGACT News in 1983, lets two parties who do not trust each other agree on a fair bit using a commitment scheme.
  • Sports use the toss as a procedural tie-breaker — the NFL overtime toss, the cricket toss for choice of innings — which treats it as fair by convention rather than relying on any measurement of the coin itself.

Cómo usar este generador

Los valores generados aparecen arriba, con un botón de copiar al lado. Para convertirlos en imagen, elige un aspecto entre los estilos de Crear una imagen, selecciona un tamaño de exportación y descarga en PNG, JPEG o WebP. Todo se renderiza en tu navegador, así que nada de lo que generas se envía a un servidor.

La barra de direcciones se actualiza mientras trabajas, de modo que el enlace reproduce siempre exactamente lo que ves: útil para compartir una secuencia concreta o guardar una configuración. Usa Copiar para llevarte los valores como texto, o Exportar datos para CSV, JSON, NDJSON, SQL o XML.

Fuentes

Los resúmenes históricos de esta página se basan en las referencias de licencia abierta citadas arriba. ¿Has visto un error? Dínoslo y lo corregiremos.