The random number generator creates truly unpredictable numbers within any range you define. Whether you need one number or hundreds — for lotteries, board games, statistical sampling, classroom activities, or coding tests — this free tool delivers instant, unbiased results.
Choose your minimum and maximum values, set how many numbers to generate, and optionally enable 'unique' mode to prevent repetition. Unique mode is essential for lottery draws — every number appears only once.
Random Integer Formula
Random Int = Math.floor(Math.random() × (max − min + 1)) + min
Generates a uniformly distributed integer in the range [min, max]. For unique numbers, each result is removed from the pool before the next is drawn.
Pick 6 unique lottery numbers between 1 and 49.
Result: Example output: 3, 17, 22, 31, 43, 48 (uniformly random, no repeats)
They use JavaScript's Math.random() which generates pseudo-random numbers — statistically uniform and sufficient for all practical purposes except cryptographic security.
Yes. Enable the 'unique' option and set count to 6, range 1–49 for UK Lotto, or 1–70 for Mega Millions main numbers.