Revenue Rex logo mark
Math · Rex's Toolbox

Random Number Generator

Generate a random integer between two bounds.

Revenue Rex peeking

Rex says

The fast lane for the math you almost remember from school. Type the numbers, get the answer, move on with your day.

Try a scenario

Click to load — tweak from there.

Inputs

Result

Random number

30

Revenue Rex peeking

Psst — share this and help Rex grow

One click, a permanent link with your numbers baked in.

More math

How to use this

  1. 1Enter minimum.
  2. 2Enter maximum.
  3. 3Enter re-roll (any number to re-randomize).
  4. 4Read your random number on the right — it updates as you type.
  5. 5Hit Share to keep the scenario or send it to someone.

About this calculator

Pick a random whole number between min and max, inclusive. Re-run the inputs to roll again.

Worked example

Using the values the calculator loads with:

Inputs

  • Minimum: 1
  • Maximum: 100
  • Re-roll (any number to re-randomize): 0

Results

  • Random number: 57

What each field means

Inputs

Minimum
The minimum used in the calculation. Starts at 1 so you have a working example on load.
Maximum
The maximum used in the calculation. Starts at 100 so you have a working example on load.
Re-roll (any number to re-randomize)
The re-roll (any number to re-randomize) used in the calculation. Starts at 0 so you have a working example on load.

Results

Random number
Returned as a whole number and shown as the headline result. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.

FAQ

How does the random number generator work?

Pick a random whole number between min and max, inclusive. Re-run the inputs to roll again.

What do I need to enter?

3 values: minimum, maximum, and re-roll (any number to re-randomize). Each field starts with a sensible default, so you can change one number at a time and watch the result move.

What does the random number result mean?

It is returned as a whole number and updates live as you edit the inputs, so you can compare two or three versions of a scenario in a few seconds.

Is this calculator free, and do I need an account?

Yes, it's free, and no account is required. Nothing you type is stored on our servers — the maths runs entirely in your browser.

How accurate is the result?

It applies the standard formula exactly, so the arithmetic is precise. Results are rounded for display; the underlying calculation keeps full precision.

Who is this tool for?

It's built for students, developers, and anyone who needs the answer right now without setting up a spreadsheet.

Accuracy and limitations

  • Results are rounded for display; the underlying calculation keeps full precision.
  • Very large or very small inputs may hit floating-point limits in the browser.
  • Inputs outside the accepted range are clamped rather than rejected.

Related tools

Cite this calculator

Writing about this topic? Grab a citation — every link helps keep these tools free.

APA
RevenueLab. (2026). Random Number Generator. Retrieved from https://www.revenuelab.fyi/toolbox/random-number
HTML
<p>Source: <a href="https://www.revenuelab.fyi/toolbox/random-number" target="_blank" rel="noopener">Random Number Generator — RevenueLab</a> (2026).</p>
Markdown
Source: [Random Number Generator — RevenueLab](https://www.revenuelab.fyi/toolbox/random-number) (2026).
Advertisement