Skip to content

Random Number Generator

Generate one or many random numbers between any two values. Choose whole numbers or decimals, avoid repeats and sort the results. Handy for draws, games and quick sampling.

Formulas last reviewed: September 2026

Disclaimer: Results are calculated with standard formulas and are meant for learning and quick checks. Please double-check important work, especially anything used for exams, engineering, finance or safety.

Fair random numbers on demand

A random number generator picks numbers from a range so that every value is equally likely. Use it for prize draws, picking a winner, choosing a sample, playing games, or when you simply cannot decide.

This tool asks your browser's built-in secure random source (the Web Crypto API), so the numbers are not predictable the way a simple formula might be. You can ask for whole numbers or decimals, allow or forbid repeats, and sort the results.

How the numbers are picked

Number = minimum + random fraction × (maximum − minimum + 1)
No repeats: shuffle the whole range and take the first n

Worked example

A lottery-style pick: 6 different numbers from 1 to 49

Range
1 to 49
Numbers drawn
6, no repeats
Different possible draws
13,983,816

Every one of those draws is equally likely, including 1-2-3-4-5-6.

Good ways to use it

  • Set the range from 1 to the number of people to pick a winner fairly.
  • Turn on No repeats when you need several different winners.
  • Use decimals to simulate measurements or sample data.
  • Choose the Dice roll quick pick for a fair six-sided die.

Numbers are generated in your browser for entertainment and general use. Do not use them for gambling systems, cryptographic keys or passwords.

Frequently asked questions

Are the numbers truly random?

They come from your device's cryptographically secure random source, which is far better than a basic formula and is suitable for draws and games.

Can I get numbers without repeats?

Yes. Switch on No repeats and every number in the list will be different, as long as the range has enough values for the count you asked for.

Can I generate decimal numbers?

Yes. Choose Decimals and set how many decimal places you want, from 1 to 8.

Is there a limit on how many numbers I can generate?

You can generate up to 1,000 numbers at a time. Press Generate again for a fresh set.