Generate random numbers in any range — set your min, max, and count. Block duplicates for raffles or allow repeats for dice-style rolls. One click, no sign-up.
Coin flips, dice rollers, and more — all free
The Random Number Generator (RNG) creates a truly random number list with no predictable sequence. You can set a minimum and maximum number, as well as the number of picks that you require, and the RNG will select numbers within that specified range. The result is as ‘fair’ as picking numbers from a hat where each number in the range has an equal chance of being picked for each draw (when allowing for repeats). Toggling off ‘duplicates’ causes the tool to switch to a ‘drawing without replacement’ model where no number can be selected twice.
This tool is also useful to draw winners for a raffle or to simulate a lottery. As an example, you printed 200 raffle tickets. In the generator, you then set the "min" and "max" values between 1 and 200 and the "count" to the number of prizes you'd like to give away. Under "options," you can then switch off the “duplicates” setting. Adjusting these settings will result in a unique list of numbers (there are no duplicates), like what you'd get from a lottery ticket. So you can use this tool for simulating the lottery (Powerball or Mega Millions). Simply adjust the minimum, maximum, and count, and let the generator do the work to simulate these games.
If you want to simulate a dice roll, or any game where the same number can appear multiple times, keep the duplicate setting on. For a single die, a range of 1 to 6 can be specified. For two dice, you can choose the same range (1 to 6) and change the number of dice to roll to 2. A 20-sided die (D&D) would have a range of 1 to 20, and you would roll 1 die. This feature is also very useful to randomly pick a score, a book page, or even a question from a list that you numbered beforehand. The sort toggle is also very useful in that it sorts the numbers from smallest to biggest instead of in the order they were picked.
Randomize a list of students (of any class size), make groups of students, create practice problems for students, or randomize the order in which you present information to students. Change the count to 1 and re-generate as needed. Alternatively, generate a list of ALL the student numbers and select from that list in a completely random and fair order. No account to set up and no software to download. Work in class with your computer, tablet, or smartphone. This is very easy to set up and use.
Researchers and analysts can use this tool to create random samples from a population or to randomly assign participants to control groups and treatment groups in experiments. For sample selection, the range is set to the size of the population, and duplicates are switched off. As many random samples are then generated as required. All results can then be copied and immediately inserted into a spreadsheet. You can then easily sort the results in the required order of the population's numbered list.
This random number generator uses the Math.random() function found in JavaScript to create random numbers. This type of generator is called a pseudorandom number generator. Note that the generated numbers are not completely random but rather seem to be random for most applications and pass random number tests. The seed value is generated from the current time and from hardware noise bits. So, for games, raffles, classwork (i.e., picking random students from a class list), etc., this tool can be used to simulate randomness for programs, games, etc., to learn how to program, etc., but not for security purposes where you need to use a true random number generator (hardware random number generators, etc.). Such tools are also available as APIs, such as crypto.getRandomValues().