Random Number Generator
Random Number Generator produces random whole numbers between any minimum and maximum you choose. Generate a single number for a quick decision, or a whole batch for sampling, raffles and testing.
Numbers are drawn with your browser's cryptographically secure random source, so they are unbiased and unpredictable. Everything runs locally — nothing you generate is sent anywhere.
How to use Random Number Generator
- 1
Set the range
Enter the minimum and maximum. Both ends are inclusive, so 1–6 can return any of 1, 2, 3, 4, 5 or 6.
- 2
Choose how many
Pick how many numbers to draw, then optionally require unique values or sort the result.
- 3
Generate and copy
Click Generate, then copy the numbers as a comma-separated list.
What can you use a random number generator for?
Random numbers settle everyday decisions and power serious work alike. Use the tool to draw raffle and giveaway winners, pick lottery-style numbers, assign teams, choose a random row in a list, or decide who goes first in a game.
Developers and analysts use it to seed test data, sample a subset of records, shuffle inputs, or simulate dice and coin flips. The unique-values option turns it into a quick way to draw a set of distinct numbers, such as lottery picks, without duplicates.
Are these numbers truly random?
The generator uses crypto.getRandomValues, the Web Crypto API's cryptographically secure random source, rather than Math.random. Each value is also reduced to your range with rejection sampling, which removes the slight bias a naive modulo would introduce.
For lotteries, games and sampling this is more than random enough. The result is unpredictable and uniformly distributed across the range you set.
Frequently asked questions
- Are the minimum and maximum included?
- Yes. The range is inclusive on both ends, so a range of 1 to 100 can return both 1 and 100.
- Can I generate numbers with no repeats?
- Yes. Enable “No repeats” to draw unique numbers. The count cannot exceed how many numbers exist in the range.
- Is the result sent to a server?
- No. Numbers are generated entirely in your browser and never transmitted.
Last updated: