Random Generators100% Client-Side

Generate Random Numbers in a Range

Choose two bounds and generate a list of numbers in that range. The default output uses integers. Enable decimals when you want the values printed to two places. The settings control the range and the number of draws, and repeated results are possible. Use the output to create a numeric fixture or a simple example with values distributed across a chosen interval.

Configuration Options
Output

How to Use the Random Number Generator with a Range

  1. 1Enter the minimum and maximum values for the draw.
  2. 2Choose Number Count and turn on Allow Decimals if you need fractional output.
  3. 3Use Generate to create values with the current options.
  4. 4Save the result when you need the same inputs for a later comparison.

Input & Output Examples

One possible result shows that either endpoint can appear in integer mode.

Input Sample
Three integers from -2 to 2
Expected Output
-2
1
2

One possible result. The trailing zero preserves two decimal places.

Input Sample
Two decimal values from 1 to 2
Expected Output
1.24
1.90

Practical Developer Workflows

  • Prepare integer values for a demo chart or a table.
  • Create a small fixture that includes values below and above zero.
  • Compare number formatting for whole numbers and values shown to two decimal places.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

With whole-number bounds and decimals disabled, the lower and upper endpoints can both occur. Setting both bounds to the same whole number returns that value on each line. Use a wider range when you want varied results.

Explore Other Tools

12 suggested tools

View all tools