MATH TOOL
Random Number Generator
Generate random numbers in a range, with or without duplicates.
Result
—
About this tool
Generate one or more random whole numbers within a range you set, using your browser's cryptographically secure random number generator rather than a predictable pseudo-random function. Turn on "No duplicates" to draw a unique set — handy for raffles, picking a winner, or sampling without repeats.
Frequently asked questions
- Can minimum and maximum be negative?
- Yes — any whole numbers work as long as the minimum is less than or equal to the maximum.
- What happens if I ask for more unique numbers than the range contains?
- The tool shows a hint explaining that there aren't enough distinct values in the range to fulfill the request, and won't generate an incomplete or misleading result.
- Is this fair for something like a raffle draw?
- The numbers come from the browser's cryptographic RNG (
crypto.getRandomValues), which is suitable for informal draws. For high-stakes or regulated drawings, use a purpose-built certified tool.