Creator Tools

Secure Random Integer

Draw one uniformly distributed whole number between inclusive bounds. Both bounds must fit signed 32-bit integers, and the maximum cannot be below the minimum.

Inputs stay in this browser tab. Results are not saved.

Your result
Ready when you are.

How to use Secure Random Integer

  1. Enter “Minimum (inclusive)”, using the units and limits shown in its label.
  2. Enter “Maximum (inclusive)”, using the units and limits shown in its label.
  3. Select Calculate or Process. Review the result and any validation message before copying or downloading available output. Reset clears the result and restores the starting inputs.

Method & assumptions

Use Web Crypto rejection sampling over a range of max − min + 1, then add min.

Worked example

Minimum 1 and maximum 6 model a fair six-sided die.

Results and projections are informational estimates, not financial, medical, legal, tax, or property advice. Check assumptions, units, rounding, and local requirements independently. Investment illustrations do not guarantee returns. Keep original files and check transformed output before use.

Questions, answered

Does modulo introduce bias?

Not here. Values beyond the largest complete range multiple are rejected first. There is no insecure fallback if Web Crypto is unavailable.

Does this send my input to a server?

No. This engine processes input locally without network requests. The surrounding website may have its own analytics or scripts; avoid entering sensitive material on an untrusted site. Text fields accept at most 1,000,000 UTF-16 units unless a smaller field limit is stated.