Random Number Generator
Generate random integers or decimals in any range, unique or sorted, with lottery presets.
How to use the Random Number Generator
- 1Set the lowest and highest number, or pick a preset such as 1 to 100 or a lottery draw.
- 2Choose how many numbers you need and whether they may repeat.
- 3Press Generate for a new draw and copy the numbers.
About Random Number Generator
The Random Number Generator picks random numbers in any range you set, with both ends included. Choose whole numbers or decimals with one to six decimal places, draw a single number or up to 10,000 at once, and decide whether numbers may repeat. With repeats turned off, every number appears at most once, like balls drawn from a drum, and the tool tells you when the range is too small for the count you asked for. Sorting puts the result in ascending order.
Presets set everything in one click: 1 to 10, 1 to 100, a dice roll, a decimal between 0 and 1, and lottery-style draws such as 6 of 49, 6 of 59, Powerball style (5 of 69 plus 1 of 26), Mega Millions style (5 of 70 plus 1 of 24) and EuroMillions style (5 of 50 plus 2 of 12). A separate bonus draw handles the extra ball, and the tool shows the chance of matching the whole combination. Numbers come from your browser's cryptographic random generator (crypto.getRandomValues) without modulo bias, and nothing leaves your device. Copy the result separated by commas, spaces or one per line; earlier draws stay listed until you leave the page.
People use it to pick raffle and giveaway winners, choose lottery numbers, draw random samples for surveys or tests, assign seats or turns, and settle classroom games. To spin a wheel of names, flip a coin or split people into teams, use the Random Picker; for dice notation like 3d6, use the Dice Roller.
Frequently asked questions
Are these random numbers truly random?
They come from crypto.getRandomValues, the browser's cryptographically secure random generator, which is seeded from your operating system's entropy. Each value in the range is equally likely because draws that would cause modulo bias are rejected and redrawn.
How do I generate random numbers without repeats?
Turn on No repeats. Each number can then appear only once per draw, so asking for 6 numbers from 1 to 49 works like a lottery draw. The count can't be larger than the number of values in the range.
What are the odds of winning 6 of 49?
There are 13,983,816 possible combinations of 6 numbers from 49, so one ticket has a 1 in 13,983,816 chance of matching all six. The tool shows this figure for any draw without repeats.
Can it generate decimal numbers?
Yes. Switch to Decimals and choose one to six decimal places. Every number on that grid between the minimum and the maximum, both included, is equally likely.
More in Calculators
Work out percentages, changes, increases and discounts in one place.
A full scientific calculator with history, functions and exact fractions.
Convert length, weight, temperature, volume, speed, data and more.