Random Number Generator
Pick random integers or decimals between any minimum and maximum, with or without repeats.
Calculation Examples
📋Steps to Calculate
-
Enter the minimum and maximum values to define your range.
-
Set how many numbers to generate and choose integer or decimal output.
-
Turn on "No Repeats" if every value must be unique, then click "Generate."
Mistakes to Avoid ⚠️
- Treating web output as truly random for security. Software generators are deterministic. A generator seeded from the clock in seconds has only about 31.5 million starting points per year (roughly 25 bits), which an attacker can search quickly. Use a cryptographically secure source for passwords and keys.
- Expecting different results from the same seed. A fixed seed always gives the same sequence, and only a changing seed gives a new one.
- Missing the upper bound. A range of 1 to 6 must be able to return 6. If your use needs the maximum to be possible, test a few hundred draws to confirm it appears.
- Believing a number is "due." After five sixes in a row, the next roll of a fair die is still a 1 in 6 chance. Past draws do not affect future ones.
Practical Applications📊
Run a fair raffle: one random number from 1 to 500 picks a winner among 500 tickets, and each ticket has a 0.2% chance.
Simulate a 6/49 lottery draw: pick 6 unique numbers from 1 to 49 with "No Repeats" on. Any single combination has a 1 in 13,983,816 chance, and generated picks do not change those odds.
Draw a survey sample: 50 unique IDs from a population of 1,000 gives an unbiased 5% sample for a survey or A/B test.
Run a Monte Carlo test: 10,000 random pairs of decimals between 0 and 1 can estimate pi by counting how many land inside a quarter circle, with a typical error of about 0.016.
