Technology & Fun · Generators
Formula verified
Random Number Generator
Set a minimum and maximum, how many numbers you want, and whether duplicates are allowed — then generate a fresh set of random numbers instantly.
Range
Number type
On-screen number pad
Tap to type into the highlighted field
Result
42
1 to 100
All numbers
How this was generatedMethod
Ad slot · 970×250 billboard
Ad slot · 300×250
How the random numbers are generated
Each click seeds a pseudo-random number generator from your browser's own cryptographic entropy source, then draws values from it scaled into your chosen range. With "no duplicates" on, the full list of possible values in the range is shuffled and the first however-many are taken, guaranteeing every result is distinct.
The formula
value = minimum + random(0, 1) × (maximum − minimum)
Worked example
Asking for 5 unique whole numbers between 1 and 49 (like a lottery draw) shuffles all 49 possible values and returns the first 5 — every number distinct, every value in range.
Frequently asked questions
Is this good enough for anything that needs real security, like a password or a cryptographic key?
No. This uses a fast, statistically well-distributed pseudo-random generator, seeded from your browser's cryptographic entropy source — good for games, raffles, sampling and everyday randomness, but not audited or intended for cryptographic key generation, security tokens, or anything where an adversary predicting the output would matter.
How does "no duplicates" work?
With duplicates excluded, this shuffles the full list of possible values within your range and takes as many as you asked for — so every draw is distinct, and the result is only possible up to the total count of values available in your range (you can't draw 10 unique numbers from a 5-number range).
Why do I get a different result every time I click Generate?
Each generation reseeds from your browser's own random-entropy source, so results aren't reproducible or predictable between clicks — that's the point of a random number generator. If you need the exact same sequence again, note down the numbers you get; there's no "seed" you can re-enter here.
Sources and method
- mulberry32 pseudo-random number generator (Tommy Ettinger, 2017) — a widely used public-domain PRNG algorithm.