Random Integer Generator

Generate a random whole number within a range.

  • Free to use
  • Accurate results
  • No registration required
  • Works on all devices
Enter a minimum and maximum to generate a random whole number in that range.

Your result

2

Random integer

AI explanation

Formula

A uniformly distributed random whole number between the minimum and maximum

Worked example

Random integer between 1 and 6 (like a die roll)

Worked example: Random integer between 1 and 6 (like a die roll)
FieldValue
Minimum1
Maximum6
Random integer4

Assumptions

  • Every whole number in the range is equally likely (a uniform distribution).

Frequently asked questions

How do I get a new random integer?

Change any field or click Reset — either one draws a fresh random integer.

Can I use this to simulate rolling a die?

Yes — set minimum to 1 and maximum to 6 (or 20 for a d20, etc.) for a fair die simulation.

I need decimal random numbers — is there a version for that?

Yes — see the Random Number Generator, which lets you choose the number of decimal places.

Related calculators

Report a calculation issue