Text & Writing Tools Processed in your browser · Client-side privacy

Random Number Generator (RNG)

Pick unbiased, cryptographically secure random integers between custom minimum and maximum bounds.

Copied!
Generated Random Number —

—

How to Generate Random Numbers

  1. Set your minimum and maximum range.
  2. Choose how many numbers to generate (1 to 20).
  3. Each draw is independent, so a number can appear more than once.
  4. Results update as you edit the fields. Use Copy Result to keep them.

Cryptographic Random Generation

  • The browser generates 32-bit values with crypto.getRandomValues(). Values outside the largest multiple of the range size are discarded so each integer in the range has the same chance. The inclusive range can contain up to 4,294,967,296 integers.

Example

  • Simulating a die roll (1-6): generates one of 1, 2, 3, 4, 5, 6 with equal 1/6 probability.

Common Applications

  • Lottery number and raffle draw simulations.
  • Statistical random sampling and hypothesis testing.
  • Game dice rolls and random event triggers.

Frequently Asked Questions

How does the generator handle repeated draws?

Each draw starts again from the full range. For example, a result of 4 on one die roll leaves the chance of 4 on the next roll at 1 in 6.

Can I generate negative numbers?

Yes, set a negative minimum value (e.g. -100 to 100).