Random Number Generator

Draw one or more random whole numbers in a range you choose — with or without repeats.

Embed on your website →

How to use the random number generator

  1. Enter the lowest and highest number in the range.
  2. Choose how many numbers you want to draw.
  3. Choose whether the same number can be drawn more than once ("with replacement") — leave it unchecked for a draw where each number can only come up once, like in a lottery.

With or without replacement?

Without replacement (default): each number can only be drawn once, just like drawing lots from a bowl without putting them back. Use this for raffles, order assignment, or other draws where repetition doesn't make sense.

With replacement: the same number can come up multiple times, like rolling a die several times. Use this for dice rolls, random sampling with replacement, or simulations.

Note: The numbers are generated using the browser's built-in randomness function, which is good enough for raffles, contests and games — but not cryptographically secure enough for things like security keys or real-money gambling.

Frequently asked questions

Can I draw more numbers than exist in the range?

Without replacement, you can draw at most as many numbers as exist in the range (e.g. a maximum of 10 numbers from the range 1–10). If you ask for more, all the numbers in the range are drawn once.

Is this suitable for a real draw or contest?

Yes, for most informal purposes like a quiz, a game, or a simple internal draw at work or with family. For contests with real prizes of high value, check whether there are formal requirements for how the draw must be documented.

Can the numbers be negative?

Yes, enter a negative number in the "From" field — for example from −10 to 10.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.