Random Number Generator

Generate random numbers within a custom range — with control over repeats, sorting, decimal places and interval size.

Range
Example 1: 1 → 1, 2, 3, …
Example 2: 2 → 1, 3, 5, …
Example 3: 0.5 → 0.5, 1.0, 1.5, …
Example 1: 2 → 2.45
Example 2: 5 → 1.73142
Result:

How this random number generator works

Set a minimum and maximum value, then choose how many results you want to generate. You can pick integers or decimal numbers, decide whether duplicates are allowed, and optionally sort the output. The value increment limits the possible values so you can generate only every 2nd number, only halves, and more.

If you disable repeats, the tool will only output unique values. In that case, make sure your range and increment provide enough possible values for the amount you request.

Common examples

  • Lottery-style picks: Generate a set of unique numbers within a fixed range.
  • Classroom activities: Create random values for quizzes, games, or groups.
  • Testing and sampling: Quickly produce random inputs for demos or spreadsheets.
  • Stepped values: Generate only values like 0.5, 1.0, 1.5 by using a custom increment.

Related Calculators

If you need to convert measurements used in your project (length, weight, temperature), try the Unit Converter.

For quick increases, decreases, and comparisons, the Percentage Calculator can help.

If your numbers are used in tips and bills, you may also like the Tip Calculator.

FAQ

How do I generate random numbers between two values? +

Enter a minimum and maximum value, choose how many numbers you want, then click Generate. The result list updates with numbers inside your chosen range.

What does “allow repeats” mean? +

If repeats are allowed, the same number can appear more than once. If repeats are not allowed, each number will be unique (as long as the range and step allow enough unique values).

What is the interval (step size) used for? +

The interval controls which values are possible. A step of 1 uses every whole number, a step of 2 uses every second number, and a step like 0.5 allows values in half steps.

How do decimal places affect the result? +

Decimal places control how many digits are shown after the decimal point. This is useful when you generate decimal numbers and want consistent formatting.

Why can’t I get enough unique numbers without repeats? +

If repeats are disabled, the generator needs enough possible values in the range (taking the step size into account). If the range is too small, you may need to widen it, reduce the count, or change the step.