Random Number Generator

Pick an integer within your range.

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Enter inclusive minimum and maximum integers, then choose Generate for a new result. Each integer in the range has equal probability.

Good to know

Uses the browser’s cryptographic random source with rejection sampling. Up to 4,294,967,296 possible integers; both bounds must be safe JavaScript integers.

Worked examples

Input

Minimum (inclusive): 1 · Maximum (inclusive): 6

Expected result

A whole number from 1 to 6, inclusive. Each generation may differ.