Guide

How to Generate a Random Number

Enter ordered bounds, choose integer or decimal mode, set a permitted quantity, and submit. For decimal mode, provide a compatible precision value.

Tool Random Number Generator

Set up the number range

The Random Number Generator creates values between two numeric bounds. Use it for a single selection, a batch of selections, whole-number results, or decimal results with a chosen rounding precision. The quantity setting lets one request produce several values, while a successful result also supplies a total and mean for the generated set. Before submitting, decide whether your range represents discrete choices or values that may contain a fractional part.

Generate the requested values

  1. Enter the lower value in the minimum field and the upper value in the maximum field. The minimum must be lower than the maximum. Leaving either field empty uses 0 for the minimum or 100 for the maximum, respectively.

  2. Select integer mode when the result should be a whole number. Select decimal mode when fractional values are suitable for the task. Integer mode converts both range endpoints to integers before selecting a value, so a fractional endpoint does not remain fractional in that mode.

  3. Enter how many values you need. An empty quantity uses 1. The permitted quantity is from 1 through 1000, so adjust the number if your first entry falls outside that interval.

  4. When using decimal mode, enter a compatible precision instead of leaving that field empty. Decimal values are rounded according to the requested precision, and the precision cannot be higher than 10. An empty or incompatible precision value can prevent decimal-mode processing from succeeding.

  5. Submit the completed request. Check that the minimum and maximum are numeric, because invalid conversions for either bound or for quantity make the request unsuccessful. If the result is unsuccessful, review the bounds, quantity, mode, and decimal precision before trying again.

Read the generated result

The returned values correspond to the selected mode and requested quantity when the request succeeds. For integer mode, the converted lower and upper bounds are both possible results, so inspect the converted range when an input contains a fractional part. For a request that returns several values, use the aggregate total to see their combined amount and the mean to see their average; both aggregate figures are rounded to 10 decimal places.

A failed result points to an input or range condition rather than a usable value list. Start with numeric formatting, then compare the two bounds, verify the quantity interval, and inspect decimal precision if decimal mode is selected. Treat the result as bounded by the settings you entered: changing the mode, range, quantity, or precision changes what the output represents.

Worked example

You need three whole-number selections from the range 10 through 20.

Set the minimum to 10, the maximum to 20, choose integer mode, enter a quantity of 3, and submit the request.

A successful response contains three generated integer values and an aggregate total and mean, with the aggregate figures rounded to 10 decimal places.

Limitations

  • Integer mode converts fractional endpoints before generation, decimal precision is capped at 10, and an empty or incompatible precision value can stop decimal-mode processing.

Common errors

  • A reversed or equal range, a quantity below 1 or above 1000, or an empty or incompatible decimal precision can make the request unsuccessful. Correct the field that matches the selected mode and submit the request again.

FAQ

What happens if I leave the inputs blank?

Leaving minimum, maximum, or quantity empty applies its default: 0, 100, or 1. Decimal precision behaves differently because an empty value can make decimal-mode processing fail.

Can I generate multiple random numbers at once?

A successful request can return several values when you set a quantity from 1 through 1000. The result also includes a total and mean for that generated set.

How do I generate a whole number within a range?

Choose integer mode and enter bounds for the desired interval. The tool converts fractional bounds to integers first, then includes the converted lower and upper bounds among the possible results.

Tool

Random Number Generator