Free developer tool
Random Number Generator
Generate random whole numbers in any range, with or without repeats, using your browser's secure random source.
Presets
Fair random numbers
Set a minimum and maximum, choose how many numbers you need and whether repeats are allowed. Numbers come from your browser's cryptographically secure random source (Web Crypto) with rejection sampling, so every number in the range is exactly equally likely.
Use it for giveaways, raffle draws, picking test samples, A/B test assignments or a quick dice roll. Ranges can include negative numbers, and you can draw up to 10,000 numbers at once.
Frequently asked questions
- Are these numbers truly random?
- They come from the operating system's cryptographically secure generator, the same source used for encryption keys. That's unpredictable enough for draws and giveaways.
- How does No repeats work?
- Each number in the range can appear at most once, like drawing balls from a bag. You can't ask for more unique numbers than the range contains.
- Can I use this to pick a giveaway winner?
- Yes. Number your entries, set the range from 1 to the number of entries and generate one number. Record the result on screen for transparency.