Random Number Generator

Generate random numbers in any range, with or without repeats. Quick presets for lottery numbers, dice and coin flip.

About this tool

Set a minimum, maximum and how many numbers you need. Choose unique numbers for raffles and lotteries, or allow repeats for dice-style rolls.

Numbers come from your browser's cryptographically secure generator. Lottery presets are for fun — every combination has exactly the same chance.

How to generate random numbers

  1. Set the minimum and maximum (both included).
  2. Choose how many numbers you need.
  3. Tick 'no duplicates' for raffles and lotteries; untick it for dice-style rolls.
  4. Press Generate, or use a preset for lottery numbers, a die or a coin.

Lottery odds

GameCombinationsJackpot odds
6 of 45 (Korea Lotto)8,145,0601 in 8.1 million
6 of 4913,983,8161 in 14 million
6 of 43 (Japan Loto 6)6,096,4541 in 6.1 million
7 of 37 (Japan Loto 7)10,295,4721 in 10.3 million

Every combination — including 1, 2, 3, 4, 5, 6 — has exactly the same chance. Random picks don't improve your odds, but they do reduce the chance of sharing a prize with people who chose popular patterns like birthdays.

Truly random

Numbers come from crypto.getRandomValues, the browser's cryptographically secure source, with rejection sampling so every value in the range is equally likely.

Common uses

Frequently asked questions

Are the numbers truly random?

They come from crypto.getRandomValues, a cryptographically secure source.

Can it improve my lottery odds?

No. Every combination has the same probability.

How many numbers can I generate?

Up to 1,000 at once.