What Is the Random Number Generator?
Pick 1 to 100 integers from an inclusive range. Bounds must be safe whole numbers from -9,007,199,254,740,991 to 9,007,199,254,740,991. Equal bounds are supported. Empty fields, decimal bounds and fractional quantities produce an error.
How to Generate Random Numbers
- Choose a preset or enter minimum, maximum and quantity.
- Choose whether duplicates are allowed. Without duplicates, quantity cannot exceed the range size.
- Set the order and click Generate Random Numbers. Sorting applies to the new batch.
- Choose Normal, Commas, Padded or Hex to display and copy the current results.
- Copy an individual result, or Copy All for one value per line.
Where Can You Use Random Numbers?
Use bounded picks for classroom exercises, test data or assigning numbered tasks. The Lottery preset gives six distinct values from 1 to 49. This browser utility does not run an audited competition or provide the full security design for tokens, encryption keys or authentication.
Formats and Sampling
| Format | Example | Meaning |
|---|---|---|
| Normal | -12 | Decimal integer |
| Commas | 1,234 in an English locale | Grouping follows the browser locale |
| Padded | -0012 | At least four digits, with the sign outside the padding |
| Hex | 7B for 123 | Uppercase base-16 digits, not a complete CSS color or address format |
Best Practices and Limitations
The generator combines two 32-bit Web Crypto values and uses rejection sampling to avoid modulo bias. Integer arithmetic keeps the entire supported interval reachable. Distinct picks use sampling without replacement, so successive picks are dependent. Sorting changes the presentation order.
No decimal generation or uniqueness outside the current batch is promised. An unavailable random source gives an error instead of switching to weaker randomness. Copy All uses newlines so locale grouping commas do not also act as list delimiters.
MDN documents the Web Crypto random source. Supported bounds and quantity checks are specific to this tool.
Share This Tool
Share this free random number generator!