Random Number Generator

Generate a random integer within an inclusive range.

Description

Generate a random integer within an inclusive range.

Random Number Generator: Generate a random integer within an inclusive range.

When to use Random Number Generator

Use this random generator for examples, sampling, simulation, tests, or games after choosing an explicit domain, range, alphabet, date interval, or deterministic seed.

Minimum
Required integer input.
Maximum
Required integer input.

How Random Number Generator works

Generate a random integer within an inclusive range. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1

Random number
The resulting random number returned as an integer.

Limitations and assumptions

  • Pseudorandom output depends on the algorithm, seed, range mapping, endpoint convention, and runtime. It is not automatically cryptographically secure, unbiased under arbitrary modulo reduction, unique, or suitable for secrets and regulated draws.
  • Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.

Alternative or Complementary approaches

Use a cryptographically secure system source for tokens or security decisions, record seeds for reproducible tests, and statistically test custom range mappings.

References

  1. Pseudorandom number generator — Wikipedia contributors

  2. Random number generation - Wikipedia

  3. Math.random() - MDN

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies