RandomPlay logoRandomPlay
Tool

Random Number Generator

Generate one or several random numbers between any two limits, with or without repeats. Default range is 1 to 100.

Random Number Generator

Generate in one click

Generate one or several random numbers between any two limits, with or without repeats. Default range is 1 to 100.

Active range: 1 - 100

Current Result

waiting

History

No numbers yet. Generate your first one.

How to use the random number generator

Enter the minimum and maximum of your range, or use the 1-10, 1-100, and 1-1000 shortcuts. Press "Generate Number" and the result appears instantly. Both ends are included: in a 1 to 10 range, both 1 and 10 can come up.

Need several numbers at once? Enter the amount (up to 100) and keep "No repeats" on so no number comes up twice, as in a draw with several prizes or a lottery ticket. "Sort from lowest to highest" makes the result easier to read.

Every result is kept in the history so you can review the last 20 draws, and the copy and share buttons send it to a chat or social network in a second. If the minimum is greater than the maximum, the tool swaps them automatically.

Ideas for using it

  • Giveaways and raffles: number the participants or tickets and generate the winning number.
  • Classrooms: pick a student by roll number or assign topics at random.
  • Games: "guess the number", homemade bingo, who goes first, or number challenges.
  • Lottery: a set of 6 different numbers from 1 to 49 to fill in your ticket. Keep in mind that no generator improves your odds of winning.
  • Quick decisions: a random page of a book, a day of the month, or an exercise from a list.
  • Statistics: create simple samples to practice probability in class.

How random is the result?

Numbers are generated in your browser with crypto.getRandomValues, the cryptographically secure generator of the Web Crypto API. It follows no predictable pattern and every value in the range has exactly the same probability.

In a 1 to 100 range, each number has a 1% chance on every draw, and draws are independent: getting 42 does not make it more or less likely to come up again. That is why repeated numbers in the history are normal.

You can also use ranges with negative numbers, for example from -50 to 50.

How to run a draw with numbers

  • Assign a number to each participant in a list everyone can see.
  • Set the range from 1 to the total number of participants.
  • Generate the number in front of the group or while screen sharing, so nobody doubts the result.
  • For several prizes, ask for as many numbers as prizes with "No repeats" on: the first number wins the top prize, the second the next one, and so on.

Frequently asked questions

How does the random number generator work?

You choose a minimum and a maximum, and the tool generates a whole number in that range with your browser's cryptographic generator. Everything happens on your device, without sending data to any server.

Are the minimum and maximum included?

Yes. In a 1 to 100 range, 1 and 100 are as likely to come up as any other number.

Can I generate several numbers without repeats?

Yes. Enter how many you need in "How many numbers" (up to 100) and keep "No repeats" on. If you ask for more numbers than the range can hold, the tool lets you know.

Can I use it for giveaways or raffles?

Yes, it works well for draws among friends, in class, or on social media. If you run a commercial sweepstakes or a raffle with ticket sales, check the legal requirements in your country.

Are the numbers I generate saved?

No. The history only exists while the page is open and is cleared when you reload or close it.

You may also like