Random Number Generator
A pseudo-random number generator (PRNG) is typically programmed using a randomizing math function to select a "random" number within a set range. These random number generators are pseudo-random because the computer program or algorithm may have unintended selection bias. In other words, randomness from a computer program is not necessarily an organic, truly random event.
Using the Random Number Generator
To generate a random number, you must set a range by specifying a minimum and maximum number. You can also decide how many numbers to generate, whether to allow repeats, and whether to sort the numbers.
- Set a range: Specify a minimum number and a maximum number. The random number(s) generated are selected from your range of numbers, with the min and max numbers included.
- How many numbers: Specify how many random numbers to generate.
- Allow repeats: If you choose No, your random numbers will be unique and there is no chance of getting a duplicate number. If you choose Yes, the random number generator may produce a duplicate number in your set of numbers.
- Sort numbers: You can decide not to sort your random numbers. You can also order your random numbers ascending, lowest to highest or descending, highest to lowest.
Examples of Using the Random Number Generator
- Generate a 6-digit PIN with or without duplicate digits.
- Randomize a set of numbers to shuffle them into a random order of selection for an event.
- Randomly choose one number from a range of numbers.
- Generate numbers for lottery tickets.
Related Calculators
- Statistics Calculators
- Physics Calculators
- Games / Sports
Cite this content
Furey, Edward "Random Number Generator" at https://www.calculatorsoup.com/calculators/statistics/random-number-generator.php from CalculatorSoup, https://www.calculatorsoup.com - Online Calculators