Math

Random Number Generator

A random number generator draws values at random from a range you choose. Set a minimum and maximum, pick how many you want, and generate a fair draw. It uses cryptographically strong randomness and runs entirely in your browser.

What people use it for

UseHow it helps
Raffles and drawsPick winners fairly from numbered entries, with no repeats.
Dice and gamesRoll a number in any range, or a batch of rolls at once.
SamplingChoose random rows, seats, or IDs without duplicates.
Lottery-style picksDraw a set of unique numbers in a chosen range.

How to use it

1. Set the range

Enter the lowest and highest number you want, such as 1 and 100.

2. Choose how many

Type how many numbers to draw in one go.

3. Set the rules

Allow duplicates for independent rolls, or leave it off to get unique numbers.

4. Generate

Press Generate to draw, pick an order, and copy the whole set.

Common questions

How random are the numbers?

Each number is drawn from the Web Crypto API through crypto.getRandomValues, which is a cryptographically strong source built into your browser. That is far less predictable than ordinary pseudo-random code, so the draws are suitable for raffles, draws, and sampling.

What does "allow duplicates" do?

With duplicates allowed, every number is an independent draw, so the same value can appear more than once, like rolling a die several times. With duplicates off, the tool draws a unique set with no repeats, like drawing numbered balls. If you ask for more unique numbers than the range can hold, the tool tells you instead of looping forever.

Can I generate a large batch at once?

Yes. Set how many you want and generate them in a single click, then sort them low to high or high to low and copy the whole list. For unique draws the count cannot exceed the size of the range, since there are only so many distinct numbers between your minimum and maximum.

Does anything I enter get sent anywhere?

No. The generator runs entirely in your browser with plain JavaScript. Nothing you enter or generate is sent to a server, so it keeps working the same way even after the page has loaded and you go offline.