gg
HomeGenerators › Random Number
Generators

Random Number

Pick a fair random whole number between any two bounds you choose. Enter a minimum and maximum and get one integer back — the range is inclusive on both ends, and it works even if you type the larger number first. Everything runs on your device from a seeded generator, so results are private and reproducible in tests.

Try it now

Worked example

85

Learn the method

Inputs

Frequently asked

Is the maximum included?

Yes. The range is inclusive, so a min of 1 and max of 6 can return any value from 1 through 6.

What if min is bigger than max?

It swaps them automatically, so 100 to 1 behaves exactly like 1 to 100.

Related Generators tools