Random Number Generator
Generate random whole numbers in a range you choose, one at a time or in bulk, with an optional no-duplicates mode — instantly, in your browser.
Generate random whole numbers within a range you choose — one at a time, or many at once, with an optional no-duplicates mode. Set your range below to generate numbers instantly, entirely in your browser.
How it works
Numbers are drawn using crypto.getRandomValues() (cryptographically secure, not Math.random()), with rejection sampling to avoid the small bias a naive “value % range” approach introduces at the edges of unevenly-sized ranges — every number in your range has an equal chance of being picked.
FAQs
Is this truly random?
It uses your browser’s cryptographically secure random number source, the same class of randomness used for things like generating security tokens — a strong choice for lotteries, giveaways, or any use where predictability would be a problem.
What does “no duplicates” do?
When enabled, every generated number is unique — useful for things like picking multiple raffle winners from a list of ticket numbers, where the same number shouldn’t be drawn twice.