Simple online tools for developers, networking, text and conversions.

Calculators

Random Number Generator

Generate random numbers between a minimum and maximum value.

Tool

Use this random number generator to create one or more random integers within a chosen range for testing, games, picks, and quick calculations.

About this tool

Use this random number generator to create one or more random integers within a chosen range for testing, games, picks, and quick calculations.

Use random number generator when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter the minimum value on the first line.
  2. Enter the maximum value on the second line.
  3. Optionally enter how many numbers to generate on the third line.
  4. Run the tool and review the generated result.

Examples

Example

Input

1
10

Output

7

Generates one random integer between the minimum and maximum.

Example

Input

100
999
5

Output

Five random integers between 100 and 999

Useful when you need several random values at once.

Common errors

Entering a maximum smaller than the minimum.

Fix: Make sure the second number is greater than or equal to the first.

Using decimals when whole numbers are expected.

Fix: This tool generates integers, so use whole numbers.

Requesting too many values at once.

Fix: Use a smaller count such as 1 to 100 for readable output.

FAQ

What does Random Number Generator do?

It generates one or more random integers inside the range you provide.

Can I set a minimum and maximum value?

Yes. Enter the minimum on the first line and the maximum on the second line.

Can I generate more than one number?

Yes. Add the count on the third line.

Does it generate decimals?

No. This version generates whole numbers only.

What happens if min and max are the same?

The tool returns that same number.

Use cases

Related tools