About the Random Number Generator
Pick a random number between any two values — for a raffle, a giveaway, a classroom game, a lottery-style draw or a quick decision. Choose how many numbers you need, whether they can repeat, whether to sort them, and whether to use whole numbers or decimals.
Numbers come from your browser’s cryptographically secure random generator with unbiased selection, so every value in the range is equally likely. Need something simpler? Switch to “Flip a coin” or “Roll dice” (one to six dice), and see your recent draws in the history.
How to use the Random Number Generator
- Enter the “Minimum” and “Maximum” values and “How many numbers” you want.
- Untick “Allow duplicates” if every number must be different, and tick “Sort results” to order them.
- Choose “Whole numbers” or “Decimals” and the number of “Decimal places”.
- Press “Generate”, then copy the result with one click.
Frequently asked questions
Are the numbers really random?
They use crypto.getRandomValues, the secure randomness built into your browser, with rejection sampling so no number is more likely than another. That is stronger than the Math.random used by many sites.
Can I generate numbers without repeats?
Yes. Untick “Allow duplicates” and every number in the result will be different. The range must contain at least as many values as you ask for.
Is the minimum and maximum included?
Yes. Both ends of the range can be drawn. For example, 1 to 6 works just like a die.
Can I use it to pick a lottery or raffle winner?
Yes, for informal draws: number the entries and generate one number (or several without duplicates). For official lotteries, follow the rules that apply where you live.