Random Number Generator

PickerSpin's random number generator picks one or more whole numbers from any range you set, from 1 to 10 up to a billion, using the browser's Web Crypto API so every number in the range has the same chance.

Pick a number from 1 to 10, 1 to 100, or anything else

Tap one of the common ranges above the form and you get a number straight away. For anything else, type the lowest and highest numbers you want. Both ends are included, so 1 to 10 can give you 1 and can give you 10. Negative numbers work, and the range can run up to a billion.

Several numbers at once, with or without repeats

Set "How many" and the generator draws them together. With No repeats on, which it is by default, no number appears twice, the way numbered balls come out of a drum. Turn it off when repeats are allowed, for example when you are simulating dice rolls. Sort the results if you want them in order, which helps when you are checking raffle tickets against a list.

How the numbers are drawn

Every number comes from crypto.getRandomValues(), the random generator built into your browser for security work. Turning its output into a number in your range has one well-known trap: taking the remainder after dividing makes low numbers come up slightly more often. This page throws away the few values that would cause that and draws again, so every number in the range has exactly the same chance. The randomness page runs a live test you can check for yourself.

When to use the number wheel instead

This page is for getting numbers fast. If you want a room to watch the draw, at a raffle or in a classroom, spin the random number wheel, which shows the same kind of draw on a wheel. There are ready-made wheels for 1 to 10 and 1 to 100, and for a board game, the dice roller.

How to generate a random number in a range

  1. Set the range - Type the lowest and highest number you want, or tap a common range such as 1-10 or 1-100.
  2. Choose how many - Ask for one number or up to 1,000. Leave No repeats on to get each number at most once.
  3. Generate - Press Generate. Each number is drawn with the Web Crypto API, and every number in the range has the same chance.

Random Number Generator - questions

Is this random number generator truly random?

It uses crypto.getRandomValues(), the browser's cryptographically secure generator, and discards the values that would make some numbers more likely than others. Every number in your range has the same chance, and each draw is independent of the last.

How do I pick a number between 1 and 100?

Tap the 1-100 button. Or type 1 in From and 100 in To, then press Generate. Both 1 and 100 can come up.

Can I generate several numbers without repeats?

Yes. Set How many to the number you need and leave No repeats on. You can draw up to 1,000 numbers at once, as long as the range holds that many different numbers.

Can I use negative numbers?

Yes. The range can go from -1,000,000,000 to 1,000,000,000, and it can cross zero.

What is the difference between this and the number wheel?

The draw is the same kind. This page gives you the numbers straight away and can draw many at once; the random number wheel spins for one number at a time, which is better when a group wants to watch.