Secure, unbiased numbers
Many simple random number tools use Math.random, which is fine for games but isn't designed to be unpredictable. This generator uses the Web Crypto API with rejection sampling, the same approach recommended for security-sensitive code. Every number in your range has exactly the same chance, even for huge ranges.
Turn on No repeats to draw unique numbers — useful for raffles, lotteries among friends, or assigning random IDs. You can generate up to 1,000 numbers at a time and sort them if you like.
Common uses
- Raffle and door-prize draws
- Picking a random winner by ticket number
- Statistics and probability lessons
- Choosing a random page, question or seat
- Board games that need a die you don't have