Cara o cruz: cara o cruz, una vez o hasta 10 000 veces
Lanza una moneda virtual justa una vez para decidir rápido, o hasta 10 000 veces para ver el recuento de caras y cruces, los porcentajes y la racha más larga de cada lado.
Entrada
Consejo: Ctrl + Intro para ejecutar
Ajustes guardados
Por ahora, la ayuda detallada de abajo solo está disponible en inglés.
Acerca de esta herramienta
A coin toss is the oldest fair way to settle a small decision: who kicks off, who picks first, which restaurant tonight. This page flips a virtual coin in one click, and because the outcome comes from your browser’s cryptographic random source, nobody can predict or steer it.
Flip it many times and it becomes a small probability experiment. Up to 10,000 flips give the number of heads and tails, their percentages, the longest run of each side and, for up to 500 flips, the full sequence. Students can watch the share of heads settle towards 50% as the number of flips grows, and see that long streaks are a normal part of randomness rather than a sign of a rigged coin.
Cómo usarla
- Leave the number of flips at 1 for a single heads-or-tails decision.
- For an experiment, enter a larger number such as 100 or 1,000.
- Run it to see the result, or the counts, percentages, longest runs and sequence.
- Run it again for a fresh, independent set of flips.
Cómo funciona el cálculo
Every flip draws one random value from the Web Crypto API and maps it to heads or tails with equal probability. The counts are added up, percentages are heads ÷ flips × 100, and the longest run is the longest unbroken stretch of the same side in the sequence. The expected number of heads, flips ÷ 2, is shown for comparison.
each flip: heads or tails with probability 1/2; expected heads = flips ÷ 2Ejemplo práctico
A teacher flips 100 coins in front of the class. The page always shows the expected 50 heads for comparison; the actual count changes every run, and results such as 53 heads and 47 tails, or 46 and 54, are ordinary. Flipping 10,000 times usually lands within about one percentage point of 50%, which shows the law of large numbers at work.
Entrada y resultado de ejemplo
100 lanzamientos: recuento de caras y cruces, porcentajes, rachas más largas y la secuencia completa H/T
Limitaciones
- Simulates a fair two-sided coin only; it cannot model a weighted or real coin landing on its edge.
- The full sequence is shown for up to 500 flips; larger runs show the totals only.
- Nothing is stored, so a result cannot be verified later by someone else.
Última actualización:
Preguntas frecuentes
¿Un lanzamiento virtual de moneda es realmente 50/50?
Sí. Cada lanzamiento toma un bit aleatorio de la API Web Crypto, así que cara y cruz son igual de probables y los lanzamientos anteriores no influyen en el siguiente.
¿Por qué veo rachas largas de caras o cruces?
Las rachas son normales. En 100 lanzamientos justos, una racha de cinco o más resultados iguales ocurre la mayoría de las veces, así que una racha no es señal de que la moneda esté defectuosa.
Preguntas frecuentes
Can I use this to make a fair decision between two people?
Yes. Agree who takes heads before flipping, then flip once. The result cannot be influenced from the page.
Why is it not exactly 50% heads?
Randomness varies around the average. With 100 flips, anything from about 40 to 60 heads is common; the share gets closer to 50% as the number of flips grows.
Is there a best-of-three option?
Enter 3 flips and count the heads; two or more heads wins for heads. For longer contests use an odd number of flips.
Solución de problemas
It says the number of flips is invalid.
Enter a whole number from 1 to 10,000.
I got heads five times in a row.
The chance of five heads in a row is 1 in 32, so it happens regularly over many flips.
Privacidad & Uso gratuito
¿Se guardan mis datos?
Tus datos permanecen en esta pestaña. No recibimos archivos, textos ni valores de cálculo.
¿Esta herramienta es gratis?
Sí. No requiere registro ni pago.
Ver también
Otras herramientas útiles
Generador de QR estáticos
Crea QR para URL, Wi-Fi, vCard o texto.
Utilidades cotidianas · Procesamiento en servidorLeer QR y códigos de barras
Decodifica QR y códigos admitidos desde una imagen.
Utilidades cotidianas · Procesamiento en servidorGenerador de códigos de barras
Genera Code 128, EAN-13 o UPC-A; no registra números de producto.
Utilidades cotidianas · Procesamiento en servidor