NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

Random Number Generator

Set a minimum and maximum, choose how many numbers you need and generate them instantly.

100% free No sign-up Works on any device

Updated November 2026 · Runs entirely in your browser

How to use the random number generator

  1. Enter the smallest (Min) and largest (Max) number you want. Both are included.
  2. Choose How many numbers to generate.
  3. Tick No duplicates if each number may appear only once, and Sort results to list them in order.
  4. Press Generate, or use a preset such as 1–10, 1–100 or a 6 / 49 lottery draw.

What people use it for

  • Draws and giveaways: number your entrants and pick a winning number.
  • Lottery numbers: 6 unique numbers from 1–49, sorted.
  • Teaching and research: random samples, seat numbers, or picking questions from a test bank.
  • Games: replace a die, decide turn order or settle "pick a number between 1 and 10".

Odds of a single number

Every number in the range has the same chance: 1 ÷ (max − min + 1). For 1–10 that's 1 in 10 (10%), and for 1–100 it's 1 in 100 (1%).

Is it really random?

Yes. Every result comes from your browser's built-in cryptographic random number generator (crypto.getRandomValues), the same source used to create encryption keys. Whole numbers are drawn with rejection sampling, which removes the small "modulo bias" that simpler generators have, so every outcome is exactly equally likely.

The result is picked on your device, not on our server, and nothing is pre-decided. Each draw is also independent: past results never make any outcome more or less likely next time.

Frequently asked questions

Set Min to 1 and Max to 10 (or tap the 1–10 preset) and press Generate. Both ends are included, so 1 and 10 can both come up, each with a 1 in 10 chance.

Yes. Set "How many" to the amount you need and tick "No duplicates". For example, 6 unique numbers from 1 to 49 gives a lottery-style draw. You can't ask for more unique numbers than the range contains.

They come from your browser's cryptographic random number generator, which is designed to be unpredictable, and every number in the range is equally likely. For legally regulated draws, use the method your rules require.

Any range of whole numbers up to about 9 quadrillion values wide (JavaScript's safe-integer limit), and up to 10,000 numbers at a time.

Yes. Enter a negative minimum, for example −50 to 50.
Esc
↑ ↓ to moveEnter to open