Generate random numbers in any range — set your min, max, and count. Block duplicates for raffles or allow repeats for dice-style rolls. One click, no sign-up.
Every word generator you need, all free
Numbers, names, games and more
A random number generator (RNG) produces numbers with no predictable sequence. You define the minimum and maximum values, choose how many numbers you want, and the tool picks from within that range. The result is as fair as drawing numbers from a hat — each integer in the range has an equal chance of appearing on every pick (when duplicates are allowed). Toggle off duplicates and the tool switches to a drawing-without-replacement model, guaranteeing no number appears twice.
The most common use for a no-duplicate RNG is picking raffle winners or simulating lottery draws. Set your range to match the ticket pool (e.g. 1–200 for a 200-ticket raffle), set count to however many prizes you're giving away, turn duplicates off, and click Generate. Every ticket number in the output is unique — no one wins twice from the same draw. For lottery simulations like Powerball (1–69, pick 5) or Mega Millions (1–70, pick 5), the same setup applies; just adjust min, max, and count to match the game format.
When you want to simulate dice or any situation where the same result can come up multiple times, keep duplicates on. A single die is range 1–6, count 1. Two dice? Count 2, same range. A d20 from D&D? Range 1–20, count 1. You can also use this to generate random scores, pick a random page number from a book, or select a random question from a numbered list. The sort toggle is useful here — turn it on to see results in numerical order rather than the raw draw order.
Teachers use random number generators constantly: picking a random student (1 to class size), assigning groups, generating practice problems, or deciding the order of presentations. Set count to 1 and regenerate as needed, or generate all student numbers at once with duplicates off for a fair random order. The tool requires no account, no install, and works on any device — making it practical for classroom use without setup time.
Researchers and analysts use random number generators to create random samples from a population, assign participants to control and treatment groups, or seed Monte Carlo simulations. For sample selection, set your range to the size of your population, turn duplicates off, and generate however many samples you need. Copy all and paste directly into your spreadsheet. The sort option makes it easier to cross-reference results against a numbered list.
This tool uses JavaScript's Math.random(), a pseudorandom number generator (PRNG) that produces outputs passing standard statistical randomness tests. It is seeded from the system clock and hardware entropy, making its output unpredictable in practice. For everyday uses — games, raffles, classroom activities, sampling — it is more than sufficient. For cryptographic key generation or security-critical applications, a dedicated hardware RNG or crypto.getRandomValues()-based solution is the appropriate choice.