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
-
Pseudorandom number generator — Wikipedia contributors
Similar or alternative tools
- Random Date Generator
Generate a random UTC calendar date within an inclusive date range.
- Random Base Number Generator
Generate a random nonnegative integer formatted in binary, octal, or hexadecimal.
- Seeded Random Number Generator
Generate a reproducible sequence of decimal values from zero inclusive to one exclusive.