TSToolSeta
Calculator Tools · Ready

Random Number Generator

Generate unbiased random integers with an optional no-repeat rule.

Workbench online

Calculator results are informational. Review the guide's assumptions and independently verify health, financial, tax, academic, or safety-sensitive decisions.

Loading tool controls…

Random Number Generator guide

Generate one or more random integers from an inclusive range, with an optional no-repeat rule.

What this tool does

The Random Number Generator accepts integer minimum and maximum values, a count from 1 to 1,000, and an optional uniqueness requirement. Both range endpoints are included. When uniqueness is enabled, a generated value cannot appear twice and the requested count cannot exceed the number of available integers.

Random values come from the browser's cryptographic random-value interface. The calculator uses rejection sampling before mapping an unsigned 32-bit value into the selected range, avoiding the simple modulo bias that appears when the source range is not evenly divisible by the target range.

The inclusive range is limited to at most 4,294,967,296 integers. Results can be copied one per line. Although the browser source is suitable for many security-sensitive building blocks, this general-purpose interface is not a password, encryption-key, lottery-certification, regulated-drawing, or audited gaming system. Those uses require purpose-built generation, logging, controls, and independent verification.

How to use it

  1. Enter integer minimum and maximum values.
  2. Choose how many numbers to generate.
  3. Enable Do not repeat a number when sampling without replacement.
  4. Select Generate numbers.
  5. Review the results and copy them one per line if needed.

Each click creates a new draw. The tool does not accept a seed and cannot reproduce a previous sequence. Save the output if an exact record is important.

After generating a non-sensitive numeric sample, use the Statistics Calculator to inspect its mean, median, range, variance, and standard deviation.

Benefits

  • Includes both minimum and maximum values
  • Generates up to 1,000 integers at once
  • Supports sampling with or without replacement
  • Uses rejection sampling to avoid modulo bias
  • Relies on the browser's secure randomness source
  • Sends no range or result to a server

Fairness and accountability

A technically random sequence does not by itself create a fair process. Participant lists, range assignment, exclusions, redraw rules, device integrity, and recordkeeping also matter. For contests, research allocation, audits, or regulated activities, follow the applicable rules and use a system with appropriate oversight.

FAQ

Yes. The range is inclusive, so both endpoints are possible results.

It samples without replacement, ensuring each integer appears at most once in that generated batch.

No. The tool uses browser cryptographic randomness and does not expose deterministic seed control.

No. Use a dedicated password or cryptographic key generator that enforces the exact format and security requirements.

No. Random generation, range mapping, display, and copying happen locally in the browser.

Keep working

Related tools

View all Calculator Tools