Generate random numbers in any range
?Random numbers are fundamental to mathematics, cryptography, games, statistics, and everyday decision-making. This generator uses Math.random() in your browser, seeded from system-level entropy (CPU timing variations, hardware events). The distribution is statistically uniform β every integer in your range has exactly equal probability.
Formula used: Math.floor(Math.random() Γ (max β min + 1)) + min. This produces an integer between min and max inclusive, with each value having 1/(maxβmin+1) probability.
No Repeats mode: Performs a Fisher-Yates shuffle of all integers in the range and returns the first N values β equivalent to drawing numbered balls from a lottery drum. Every number appears at most once.
Common uses: Lottery number picking. Random sampling. Generating temporary PINs. Assigning random order to a list. Statistical simulation. Selecting a random participant. Teaching probability. Game mechanics requiring random values between specific bounds.
Enter your minimum and maximum values, then click Generate. Both endpoints are inclusive β a range of 1 to 10 can return any value from 1 through 10.
It shuffles all integers in your range and draws from that pool β like a lottery draw where each number can only appear once. Useful for picking unique winners or generating non-repeating sequences.
Yes β set the "Generate" count up to 20. With No Repeats enabled, all values will be unique. Without it, the same number can appear more than once.
Yes. Set your range (e.g. 1β49), set count to 6, enable No Repeats, and click Generate to get 6 unique lottery numbers. Results are random β there is no guarantee they will win.