Random Number Generator
GeneratorsRandom integers in any range, with unique mode
The Random Number Generator produces random integers within a range you define. Set a minimum and maximum, choose how many numbers you need, and decide whether duplicates are allowed. You can also sort the output ascending or descending for easier reading. It is a versatile tool for raffles, classroom activities, statistical sampling, game design and any situation that needs an unbiased random pick.
For most everyday uses — picking a winner, rolling dice, choosing a random sample — the generator uses an unbiased uniform distribution so every number in your range has an equal chance of being selected. The 'unique' mode draws without replacement (like pulling numbered balls from a hat), guaranteeing no repeats — essential for raffles and lotteries where fairness matters.
A 'secure' mode is available for contexts where unpredictability is security-critical (e.g. generating one-time codes or seeds). Secure mode uses window.crypto.getRandomValues, the browser's cryptographically secure random source, instead of the standard pseudo-random generator. This rules out predictable outputs even if an attacker knows the algorithm.
The tool supports negative ranges (e.g. -100 to 100), large ranges (up to safe-integer limits) and bulk generation of hundreds of numbers at once. Results are displayed as a clean, copyable list. Everything runs locally; no numbers are transmitted or logged.