Random generators

Random Number Generator

Pick a random whole number from an inclusive range using browser cryptography.

Generated on this deviceNew result with each generation

Generation settings

Runs on your device

YOUR GENERATED RESULT

Ready when you are

Let’s generate.

Use the Generate button to see your result.

Generated values are not saved.

How to use this tool

  1. Enter minimum, maximum.
  2. Select Generate for a fresh value.
  3. Check the method and assumptions below before using the result.

The method, explained

A cryptographic 32-bit random value is sampled. Rejection sampling removes modulo bias before mapping it to the inclusive integer range.

A WORKED EXAMPLE

With a minimum of 1 and a maximum of 6, each click produces a value from 1 to 6, like a six-sided die.

What to keep in mind

Repeated values are possible and expected. This tool generates one independent value at a time; it is not a lottery prediction system.

Common questions

Can the result equal the maximum?

Yes. Both endpoints are included.

Why did I get the same number twice?

Independent random draws can repeat. A repeat does not mean the generator failed.

Methodology maintained by ClarityKit. How these tools are built and checked.