Random Number Generator

Pick random numbers for a lucky draw, a game, a classroom activity or a sample. Choose the range, how many and whether numbers may repeat.

Repeats
Leave empty for a new draw each time; a seed repeats the same draw.
Results update as you type.

Your numbers

24, 58, 44, 7, 13

Sorted
7, 13, 24, 44, 58

Fine for games, raffles and sampling. Not for passwords or security; use a dedicated secure generator for those.

About this calculator

Enter a seed to get the same draw again, for example to show how winners were picked.

How to use it

  1. Enter the range.
  2. Choose how many numbers and whether repeats are allowed.
  3. Optionally enter a seed.

The formula

Each number = from + ⌊random × (to − from + 1)⌋
seed
starting point that makes a draw repeatable

Worked example

Five numbers from 1 to 100 with no repeats

  1. Each number is equally likely.
  2. With a seed, the same five numbers come out every time.

What the result means

For a fair public draw, announce the seed before drawing.

Assumptions

  • Uniform distribution.

Limitations

  • Not for passwords or security.

Frequently asked questions

Is it truly random?

It uses the browser’s random generator, which is fine for games and draws but not for security.

How do I pick a lottery-style draw?

Set the range, the count and no repeats.

What is a seed?

A number that fixes the sequence so a draw can be repeated.

Last reviewed on 3 October 2026. Found a mistake? Tell us.