About the Random Number Generator tool
Sometimes you just need a fair, unbiased number: to pick a lucky draw winner, choose roll numbers for a viva, set a random seed for a test, or decide who goes first in a game. This random number generator lets you set any minimum and maximum, choose how many numbers you want, and get the results instantly.
You can generate whole numbers or decimals with up to 10 decimal places, allow repeats or ask for unique numbers only, and sort the output in ascending or descending order. Behind the scenes it uses the browser’s cryptographic random source, crypto.getRandomValues, instead of Math.random. Values are mapped to your range with rejection sampling, which avoids the small bias that simple “random modulo range” code introduces, so every number in the range has exactly the same chance of appearing.
Results appear as one large number or as a list of chips with a quick summary of the minimum, maximum and average. Copy them separated by commas or new lines, or download them as a text file. Nothing is sent to a server, so the draw is private and works even on a slow connection.
How to use Random Number Generator
- Enter the Minimum and Maximum values of your range.
- Set “How many numbers” you want (up to 10,000).
- Choose Integers or Decimals, and pick a Sort order if you like.
- Turn on “Unique numbers only” if no number may repeat.
- Click “Generate”, then use “Copy (comma)”, “Copy (lines)” or “.txt” to save the result.
Features
Cryptographically secure
Uses crypto.getRandomValues with rejection sampling for truly uniform, unpredictable results.
Unique mode
Draw numbers without repetition, with a clear message if the range is too small for the count.
Integers or decimals
Generate whole numbers or decimals with 0 to 10 decimal places.
Sorting and stats
Sort ascending or descending and see the min, max and average of the generated list.
Easy export
Copy as comma-separated or line-separated text, or download a .txt file.
When to use it
- Pick a random winner number for a giveaway or raffle.
- Generate lottery-style unique numbers, such as 6 numbers from 1 to 49.
- Assign random roll numbers or seat numbers to students.
- Create random test data or sample indices for a survey.
- Settle a quick decision by rolling a number between 1 and 6.
- Pick random question numbers from a question bank for a mock test.
Frequently asked questions
Are the numbers truly random?
They come from your browser’s cryptographically secure random generator, which is suitable for security use. It is far less predictable than the Math.random function used by many simple tools.
Can I generate numbers without repeats?
Yes. Turn on “Unique numbers only”. If you ask for more unique whole numbers than exist in the range, the tool tells you instead of looping forever.
Can the minimum be negative?
Yes. Any range works, including negative numbers, for example from -50 to 50.
How many numbers can I generate at once?
Up to 10,000 in one go. The first 2,000 are shown on screen, and all of them are included when you copy or download.
Is this suitable for official lotteries?
It is fair and unbiased, but official draws usually need an auditable process. Record your screen or use it together with witnesses for transparency.
Can I generate random decimal numbers?
Yes. Choose Decimals as the number type and set how many decimal places you need, from 0 to 10. Each value is drawn uniformly between your minimum and maximum.