Random Number Generator
Generate random numbers in any range, with optional uniqueness — for draws and sampling.
To generate random numbers, set a minimum, maximum and how many you want. Values are drawn from the browser's cryptographically secure random source rather than Math.random, and the no-repeats option guarantees distinct values for draws and sampling.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Is this suitable for a lottery or a giveaway?
What is the difference between Math.random and crypto random?
How to use the random number generator
- 1Set the minimum.
- 2Set the maximum.
- 3Set the how many.
- 4Turn "No repeats" on or off as needed.
- 5Turn "Sort ascending" on or off as needed.
- 6The result appears immediately — copy or download it.
Embed this tool
Put the working random number generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Dice RollerRoll any number of dice with any number of sides, plus a modifier.Password GeneratorGenerate strong random passwords using your browser's cryptographic random source.Random String GeneratorGenerate random strings from a chosen character set — for keys, tokens and test data.Lottery Number GeneratorGenerate random lottery lines for common draws, with the real odds shown.Random Date GeneratorGenerate random dates in a range, optionally restricted to working days.Username GeneratorGenerate available-looking usernames and handles in several styles.
Last updated
More calculators