Random Number Generator: numbers in any range
Generate random numbers between any two values: one number or a whole list, with or without repeats, sorted or in random order. Numbers come from your browser's cryptographic random source, so every value in the range is equally likely.
Whole numbers only, both ends included. Type numbers the English way (1,000 or 1000; "1k" and "1e3" also work): the line under each box shows how the number was read, and the tool asks when a value could mean two things. Values are generated on your device with crypto.getRandomValues and are not stored.
Ways to use it
- Pick a winner: number your entries from 1 to N and generate one number.
- Draw several winners: set "How many" to the number of prizes and keep "No repeats" on, so nobody wins twice.
- Lottery-style picks: for example 6 numbers from 1 to 49 with no repeats, sorted.

- Dice and games: 1 to 6 for a die, 1 to 20 for a d20, with repeats allowed.
- Random samples: choose which rows of a spreadsheet to check.
Is it really random?
The tool uses the Web Crypto API built into your browser, the same source used to generate encryption keys. To keep every number equally likely, it uses rejection sampling: random values that would make some numbers slightly more common are thrown away and drawn again. With "No repeats" on, numbers are picked from the full range without replacement.
Need random characters instead of numbers? The password generator builds random strings from letters, digits and symbols with the same secure random source.
Frequently asked questions
Can I use it for an official prize draw?
The numbers are fair, but official draws often have legal rules about witnesses and records that a web page cannot provide. The page keeps no record of a draw, so anything that proves how the winner was picked, such as a screen recording or a method announced in advance, has to come from the organizer; the rules for official draws are set by local law where the draw is held.
What are the limits?
The range can be anywhere between −1,000,000,000,000 and 1,000,000,000,000, and you can generate up to 10,000 numbers at once. With "No repeats" on, you cannot ask for more numbers than the range contains.
Can it generate decimals?
Not directly. To get numbers with two decimals between 0 and 1, generate whole numbers from 0 to 100 and divide by 100.