Random Number Generator – Pick Random Numbers in Any Range
Random Number Generator
Generate truly random numbers in any range, one or many, unique or with repeats, using secure browser randomness

Quick answer
A random number generator picks numbers by chance within a range you choose. Enter a minimum and maximum, choose how many numbers you need and whether repeats are allowed, then click Generate. This tool uses your browser's cryptographic random source, so every number in the range has exactly the same chance of being picked.
Our free random number generator handles everything from picking a number between 1 and 10 to drawing lottery numbers, rolling dice, creating PIN codes and producing thousands of numbers for testing or statistics. It supports negative numbers and decimals, shows the sum and average and lets you copy or download the results.
What You Can Use It For
| Use | Settings |
|---|---|
| Pick a number from 1 to 10 | Min 1, Max 10, How many 1 |
| Roll two dice | Min 1, Max 6, How many 2 |
| Lottery numbers | Min 1, Max 49, How many 6, No repeats, Sort |
| 4-digit PIN | Min 1000, Max 9999 |
| Random decimals | Min 0, Max 1, Decimal places 2 |
| Pick raffle winners | Min 1, Max number of tickets, No repeats |
Features of the Random Number Generator
- Any range, including negative numbers and very large numbers.
- Up to 10,000 numbers in one click.
- No repeats mode for unique numbers, such as lottery draws or raffles.
- Whole numbers or up to four decimal places.
- Sorting, a choice of separators, and copy or download as a text file.
- Count, sum, average and range of the results.
How to Use the Random Number Generator
Step 1: Pick a Preset or Set the Range
Click a preset such as 1 to 100 or Lottery 6 of 49, or type your own minimum and maximum.

Step 2: Choose How Many and Unique or Repeats
Enter how many numbers you need. Tick No repeats when every number must be different, and Sort results to list them in order.

Step 3: Click Generate and Read the Result
Click Generate or press Enter. A single number is shown in large type, and longer lists appear below it.

Step 4: Copy or Download Your Numbers
Click Copy results or Download .txt. The cards show the count, sum, average and range of the numbers you drew.

Teachers use the random number generator to pick students, streamers use it for giveaways, and developers and researchers use it for sampling and test data. Because the random number generator uses crypto.getRandomValues, the results cannot be predicted or repeated.
Is This Truly Random?
The numbers come from the cryptographically secure random number generator built into your browser and operating system, which collects unpredictable data from the hardware. The tool also uses rejection sampling, so no number in the range is more likely than another. That makes it fairer than the simple Math.random function that many websites use.
Random Number Generator Tips
- For a fair giveaway, number the entries first, then draw with No repeats ticked and record the result on screen.
- If you need more unique numbers than the range allows, widen the range or allow repeats.
- Use Decimal places to pick random prices, weights or measurements.
- Download the list as a text file when you need to paste the numbers into a spreadsheet.
Frequently Asked Questions
How does the random number generator work?
It uses crypto.getRandomValues, the secure random source in your browser, to pick each number so every value in your range is equally likely.
Can I generate numbers without repeats?
Yes. Tick No repeats (unique). The tool checks that your range has enough numbers and then draws each value only once.
Can I use negative numbers or decimals?
Yes. Enter a negative minimum and choose up to four decimal places.
How many numbers can I generate at once?
Up to 10,000 numbers in one go.
Is it fair for giveaways and raffles?
Yes. Every entry has the same chance, and the numbers cannot be predicted. For transparency, share your screen or a screenshot when you draw.
Can I pick lottery numbers with it?
Yes. Use the Lottery 6 of 49 preset or set the range and count for your lottery. Every combination has the same tiny chance of winning, so no tool can improve your odds.
Is this random number generator free?
Yes. It is free, needs no sign-up and runs in your browser.