Random Number Generator
Generate random numbers in any range — a single number between 1 and 100, or hundreds at once, with or without duplicates. Fair results from a cryptographic random source.
How to generate random numbers
Drawing a raffle winner, picking a lottery line, assigning teams, choosing who goes first — whenever fairness matters, "just think of a number" doesn't cut it. This generator produces genuinely uniform random numbers in any range you set, one at a time or in bulk.
Set your range
Choose minimum and maximum — 1 to 100, 1 to 10, negative ranges, anything up to ±1 billion.
Choose the options
Decide how many numbers you need, whether duplicates are allowed, and whether to sort the result.
Generate & copy
Click Generate and copy the result with one click — for example into a spreadsheet or a group chat.
What "fair" means here
Many simple generators use Math.random(), which is fine for games but not designed to be unbiased. This tool uses the browser's cryptographic random source with rejection sampling, which guarantees every number in your range has exactly the same probability — the same class of randomness used for security keys. For a raffle, enable "No duplicates" so each participant number can be drawn only once; the generator then performs a proper shuffle rather than repeatedly re-rolling.
Frequently asked questions
How do I pick a random number between 1 and 100?
The default range is already 1 to 100 — just click Generate. Change the minimum and maximum fields for any other range, including negative numbers.
Can I generate numbers without duplicates?
Yes. Enable the "No duplicates" option and every generated number will be unique — ideal for raffles, lottery-style draws or assigning people to positions.
Are the numbers truly random?
The generator uses your browser's cryptographic random source (crypto.getRandomValues) with rejection sampling, so every number in the range has exactly the same probability.
How many numbers can I generate at once?
Up to 1,000 numbers per click. In "No duplicates" mode the maximum is limited by the size of your range, since each number can only appear once.