Calculator

What the Random Number Generator does

Random Number Generator: generates Random Number from Minimum and Maximum. Example: minimum 1 and maximum 100 gives random number 21.

Feed it Minimum and Maximum; it hands back Random Number. Set your values, then run the tool to see the result.

Typical users are anyone verifying a hand calculation. Seeing the intermediate steps is usually more useful than the final number alone.

Because it is all local, the tool is as fast as your device and as private as your own notes.

Below the tool you will find the field reference, the method, and an example computed from the values it opens with.

What do the Random Number Generator fields mean?

The Random Number Generator uses 2 inputs. Sensible defaults are loaded up front, which means you can change one number at a time instead of filling the whole form first.

FieldWhat to enterDefault
Minimum required 1
Maximum required 100

How does the Random Number Generator work?

Random Number and What this means ← f(Minimum, Maximum)

Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same generated output.

Validation runs before the calculation, which is why a mistyped value shows an error rather than a plausible-looking result.

Worked example

These are the values the Random Number Generator loads by default, and the result it produces from them. These are the exact values loaded when the page opens, and the answer they produce.

Inputs
Minimum1
Maximum100
Result
Random Number21
What this meansRandom integer in [1, 100]

How to use it

  1. Type Minimum.
  2. Enter Maximum.
  3. Press Generate.
  4. Look at Random Number and What this means in the output panel.
  5. Print gives a tidy version without the navigation, which is handy for attaching to a file.

What this tool does not do

  • Very large or very small values reach the limits of floating-point precision, about 15 significant digits.
  • Displayed values are rounded; the underlying calculation keeps full precision.
  • Intermediate steps are rounded only for display; if you need full precision, work from the source figures.

Frequently asked questions

Minimum and Maximum. That is the whole form. Nothing starts empty, so you can change one value at a time and watch how the result responds.

With the values loaded when the page opens, random number comes out as 21. Overwrite any of the starting values and the result follows.

Nothing is stored. The page has no back end to send data to, and holds your input only in memory.

No payment and no login. Advertising covers the running costs.

It follows the standard definition for this operation, so the result matches what a reference implementation would give.

YoursTools Team
Product & Engineering

Builds and maintains every calculator on YoursTools.