All tools
PRODUCTIVITY TOOLS / FREE ONLINE TOOL

Random Number Generator.

Pick an unbiased random whole number within a range you set.

INTERACTIVE WORKSPACE

Make it happen.

RUNS IN YOUR BROWSER
THE DETAILS

What this tool is for

Enter inclusive minimum and maximum values. The browser uses secure random bytes with rejection sampling to avoid modulo bias.

How to use it

  1. Enter an inclusive minimum and maximum as whole numbers.
  2. Generate one number. Run it again if you need another independent draw.
  3. Do not use it for regulated gaming or a draw that needs a certified process.

A worked example

Inputs. Minimum 1, maximum 6.

Result. One whole number from 1 to 6, each equally likely.

The browser supplies a 32-bit random value. Values that would make some remainders more likely are rejected, so a die roll is not biased by modulo arithmetic.

Where it helps

  • Picking a fair winner from numbered entries.
  • Simulating a die for a game or a classroom exercise.
  • Choosing an unbiased index inside a list you numbered yourself.

Limits

  • Whole numbers only, and the range must be smaller than 2^32.
  • Not a certified casino or lottery generator.

Mistakes to avoid

  • Setting the minimum higher than the maximum.
  • Expecting a decimal.

Questions

Is every number equally likely?

Yes, within the inclusive range, because out-of-range random values are discarded.

Can I get a decimal?

No. This tool returns whole numbers.