Online Calculators

Random Number Generator

Generate cryptographically sourced whole numbers within an inclusive safe-integer range. Request up to 1,000 results and optionally prevent repeated values.

Runs in your browserNever uploaded to PagesTools.
Preparing tool…

The focused browser interface is loading.

100% privateYour input stays on this deviceLightning fastNo upload round-tripBrowser-basedProcessing runs on this deviceFree to useNo account required

What Random Number Generator does

Random Number Generator uses browser cryptography and rejection sampling to choose integers uniformly from the inclusive minimum-to-maximum range. Both endpoints can appear in the output.

The optional unique setting tracks values already selected and rejects repeats. When enabled, the requested count cannot exceed the number of distinct integers available in the range.

How to use Random Number Generator

  1. Enter inclusive minimum and maximum safe integers in ascending order.
  2. Choose a result count from 1 through 1,000.
  3. Enable Do not repeat a number if sampling without replacement is required.
  4. Generate, then copy or download the one-number-per-line result.

Important details

Uniform integer selection

Random 53-bit candidates come from crypto.getRandomValues. Rejection sampling discards values outside an even multiple of the requested span, avoiding simple modulo bias.

Range and uniqueness checks

Minimum and maximum must be JavaScript safe integers and define a valid positive span. Unique output is refused when the range contains fewer values than the requested count.

Practical uses

  • Draw positions or identifiers from a defined integer range.
  • Create non-repeating random samples for classroom or test fixtures.
  • Generate unbiased dice-like outcomes with a custom number of faces.

Privacy and limitations

The range and generated values remain in this browser and are not sent to PagesTools. Downloaded output follows the browser's normal file-handling rules.

Results are not reproducible from a seed and are not an auditable public drawing. Do not use an unaudited browser page alone for regulated lotteries, gambling, cryptographic keys, or decisions requiring independently verifiable randomness.

Common questions

Frequently asked questions

Are the minimum and maximum included in the random range?

Yes. Both endpoints are eligible. A range from 1 through 6 can return any of the six integers, including 1 and 6.

How does the no-repeat option work?

Selected values are stored in a set during that generation run. A duplicate draw is discarded until the requested number of distinct results has been collected.

Can I reproduce the same random list from a seed?

No. The interface uses fresh browser cryptographic randomness and exposes no seed. Save the generated list if an exact result must be retained.