Resposta: O Gerador de Números Aleatórios produz seu resultado instantaneamente a partir da entrada fornecida — tudo roda no seu navegador, de graça, sem necessidade de cadastro.
Sorteie números aleatórios de qualquer intervalo.
A random number generator (RNG) produces numbers that lack any predictable pattern. This page generates random integers between any two bounds you choose, entirely in your browser. Typical uses include picking giveaway winners, assigning presentation order, sampling items for review, generating lottery-style picks, dice rolls, and randomized practice problems.
Computers cannot produce true randomness from arithmetic alone — a fact formalized by John von Neumann's 1951 remark that anyone considering arithmetic methods of random digits is "in a state of sin." Software RNGs are therefore pseudorandom: they run a deterministic algorithm whose output passes statistical tests for randomness. JavaScript's Math.random(), which this tool uses, is a pseudorandom generator; for cryptographic keys or gambling-grade fairness, use a cryptographic RNG such as the Web Crypto API's crypto.getRandomValues, which browsers implement from a cryptographically secure source.
To draw a random integer between min and max inclusive, the generator produces a uniformly distributed value and maps it onto the integer range. When every number in the range is equally likely, each individual draw of a number between 1 and N has probability 1/N. Uniform draws are independent: the generator has no memory, so a number that has not appeared recently is not "due" — the belief otherwise is known as the gambler's fallacy.
Para amostragem sem reposição (por exemplo, atribuir posições únicas a uma lista de pessoas), sorteie repetidamente mas pule os números já usados até que cada um seja atribuído uma vez, ou embaralhe a lista e leia a ordem.
A tabela abaixo lista intervalos frequentemente usados e a probabilidade de um valor específico aparecer em um único sorteio uniforme.
None
| Range | Valores | Chance de um valor específico |
|---|---|---|
| Rolagem de dado (1–6) | 6 | 1/6 ≈ 16.7% |
| Estilo cara ou coroa (0–1) | 2 | 1/2 = 50% |
| Roleta (0–36, europeia) | 37 | 1/37 ≈ 2.7% |
| Loteria 6/49 acerto único | 49 | 1/49 ≈ 2.0% |
| Escolher 1 de 100 | 100 | 1% |
| Sorteio entre 250 participantes | 250 | 1/250 = 0.4% |
A pseudorandom generator starts from an internal state (a seed) and advances deterministically; the same seed yields the same sequence, which is why scientific simulations often accept a seed for reproducibility. Browser Math.random() implementations are seeded automatically and are not designed to be reproducible or cryptographically secure. For statistics-grade simulations, tools supporting fixed seeds or the Python NumPy Generator API are a better fit; for drawings where fairness matters publicly, prefer a transparent method such as a filmed dice roll or a certified lottery terminal.
Randomness is a foundational resource in computing, statistics, and cryptography. Monte Carlo methods — used across physics, finance, and engineering — obtain numerical results by repeated random sampling, a technique named after the casino district of Monaco and developed on early computers by Stanislaw Ulam and John von Neumann at Los Alamos in the 1940s. Randomized algorithms also underpin modern machine-learning training, in the form of random weight initialization, shuffling, and dropout.
Randomized controlled trials, the gold standard in medicine, depend on unbiased random assignment of participants to treatment and control groups. Proper randomization prevents selection bias from systematically favoring one group; that is why trial registries publish the randomization method. The same principle applies at smaller scale: randomly assigning chore orders, presentation slots, or A/B test variants removes the quiet biases of alphabetization or self-selection.
In games, dice and shuffled decks are physical randomizers with centuries of history; digital games replicate them with pseudorandom calls, and competitive formats increasingly publish their randomization procedures so participants can verify fairness. Tabletop role-playing games use polyhedral dice — d4, d6, d8, d10, d12, d20 — each a uniform draw over its face count, exactly what a range-limited integer generator reproduces.
A brief fairness note for drawings: assign each entrant a number first, generate one integer in the full range, and record the result before announcing it. Avoid re-rolling "until it feels right," which introduces human bias and, over many drawings, systematically distorts outcomes. For high-stakes selections, publish the method and the seed or use an independent third-party drawing service.
Este gerador é realmente aleatório?
Nenhum gerador de software é realmente aleatório. Esta ferramenta usa o Math.random() do JavaScript, um gerador pseudoaleatório cujo resultado passa em testes estatísticos de aleatoriedade. Para fins criptográficos, use uma fonte segura como crypto.getRandomValues.
Posso gerar um número entre quaisquer dois valores?
Sim. Defina os limites mínimo e máximo e cada sorteio retorna um inteiro dentro desse intervalo, inclusive, com todos os valores do intervalo igualmente prováveis.
Por que o mesmo número apareceu duas vezes seguidas?
Com um gerador uniforme e independente, repetições são esperadas. Sorteando de 1–6, a chance de o próximo resultado repetir o anterior é 1/6; ao longo de muitos sorteios, sequências e aglomerações são normais, não evidência de viés.
É justo para um sorteio de prêmios?
É uniforme e sem viés no sentido estatístico comum, mas não é auditável por terceiros. Para sorteios públicos concorridos, use um método que testemunhas possam verificar ou um serviço de randomização certificado.
Qual a diferença entre pseudoaleatório e criptograficamente seguro?
Geradores pseudoaleatórios são algoritmos determinísticos adequados para jogos e amostragem; geradores criptograficamente seguros (CSPRNGs) resistem à previsão mesmo após observar muitos resultados e são necessários para chaves, tokens e aleatoriedade sensível à segurança.