TextToolboxTextToolbox
HomeGenerators & Fun ToolsRandom Number Generator

Random Number Generator

Pick 1 to 100 integers from an inclusive safe-integer range, with optional unique results.

Built by Saurabh Kumar

Quick Answer

Pick 1 to 100 integers within inclusive safe whole-number bounds, including negative and equal bounds. Choose duplicates, sorting and Normal, Commas, Padded or Hex display. Copy All places one formatted value per line. Empty fields and unsupported decimals are rejected.

Quick Presets

Configuration

Results

Click "Generate" to pick random numbers

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

  1. Choose a preset or enter minimum, maximum and quantity.
  2. Choose whether duplicates are allowed. Without duplicates, quantity cannot exceed the range size.
  3. Set the order and click Generate Random Numbers. Sorting applies to the new batch.
  4. Choose Normal, Commas, Padded or Hex to display and copy the current results.
  5. 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

Display and Copy use the same formatting
FormatExampleMeaning
Normal-12Decimal integer
Commas1,234 in an English localeGrouping follows the browser locale
Padded-0012At least four digits, with the sign outside the padding
Hex7B for 123Uppercase 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!