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
Random selection
Random selection

Generate a new independent result whenever you need one.

See the method

Set your choices

Runs on your device

Your selection

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.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
MinimumNumeric value.1
MaximumNumeric value.100

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.