Math & Numbers

Random Number Generator

Generate random integers or decimal numbers within a specified numeric range with customizable quantity and precision.

Run tool

This online random number generator produces random integers or floating-point decimal numbers within a custom numeric boundary. By default, the generator creates a single whole number between 0 and 100. You can customize the minimum and maximum boundaries to fit your scenario, such as simulating dice rolls, picking raffle winners, or conducting statistical sampling. When integer mode is active, fractional inputs for boundaries are converted to whole numbers, and both endpoints remain inclusive in the draw. Switching on the decimal option allows you to generate fractional values rounded up to 10 decimal places. You can also generate multiple numbers at once, from 1 up to 1,000 values in a single run. Along with the generated list of numbers, the tool calculates the aggregate sum and the arithmetic mean for your set, displaying both values rounded up to 10 decimal places for convenient review.

Instructions

  1. Enter your lower boundary in the Minimum Value field and your upper boundary in the Maximum Value field.
  2. Specify how many numbers to create in the Quantity field, choosing any whole number from 1 to 1,000.
  3. Check Decimal Mode if you need fractional numbers, or leave it unchecked for integers.
  4. Set the desired precision in the Decimal Places field (up to 10 places) if Decimal Mode is enabled.
  5. Click the run button to generate your numbers and view summary statistics.

Examples

  • Simulating five standard six-sided dice rolls: set Minimum Value to 1, Maximum Value to 6, Quantity to 5, and leave Decimal Mode unchecked to receive 5 integers between 1 and 6.
  • Generating random measurement offsets: set Minimum Value to -5.5, Maximum Value to 5.5, Quantity to 10, check Decimal Mode, and set Decimal Places to 3 to generate 10 fractional values.

FAQ

Are the range boundary values included in the generated results?

In integer mode, both the lower and upper integer boundaries are inclusive. In decimal mode, values are generated across the specified continuous range and rounded to your chosen decimal places.

What is the maximum quantity of numbers generated at one time?

You can request between 1 and 1,000 values in a single execution.

What happens if the minimum value is greater than or equal to the maximum?

The minimum value must be strictly smaller than the maximum value. If the minimum is equal to or greater than the maximum, the tool will report a range error.

How many decimal places are supported?

When decimal mode is selected, precision can be set up to 10 decimal places. The summary total and mean are also displayed with up to 10 decimal places.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.