Free number utility

Random Number Generator

Generate one or more random numbers between your chosen minimum and maximum, with options for decimals and duplicates.

Custom range Multiple results Decimals optional Copy results

Generate random numbers

Click generate to create your random number result.
Note: this generator is useful for everyday choices and simple randomisation. Do not use it for regulated lotteries, legal draws or cryptographic security.

How the random number generator works

Choose a minimum, maximum and quantity, then generate a value inside that range. With whole numbers, the minimum and maximum are both included. With decimal numbers, the tool creates values between the two limits and rounds them to your chosen number of decimal places.

integer result = random whole number from minimum to maximum inclusive decimal result = minimum + random value × (maximum - minimum) rounded result = decimal result rounded to selected decimal places

When duplicates are switched off, the tool makes sure the same whole number does not appear twice in the same set.

What each setting means

Setting What it controls Example
Minimum The lowest value that can appear. Set 1 for dice-style results.
Maximum The highest value that can appear. Set 49 for a 1–49 draw.
Quantity How many numbers to generate. Set 6 for six random results.
Decimal places Whether results are whole numbers or rounded decimals. Set 2 for values such as 14.27.
Allow duplicates Whether the same number can repeat in the result set. Switch off for a simple no-repeat draw.

Example uses

  • Classroom activities: pick random groups, question numbers or practice examples.
  • Simple decisions: choose a random number when you do not want to decide manually.
  • Testing forms: create sample values for spreadsheets, mockups or text tools.
  • Games: generate dice-style or range-based values for casual play.

If you need secure random strings rather than simple numbers, use the Password Generator instead.

Important limitations

This tool is meant for everyday random choices and simple utility tasks. It should not be used for gambling, official prize draws, cryptographic keys, regulated lotteries or any situation where independent auditability is required.

Need a percentage instead?

Use the Percentage Calculator when you need to calculate increases, decreases or proportions rather than generate random values.

Open Percentage Calculator

Random number generator FAQs

Are the minimum and maximum included?

For whole numbers, yes. If you choose 1 to 10, the result can be 1, 10 or any whole number between them.

Can I stop duplicate numbers?

Yes. Switch off duplicate results. This only works for whole-number results where enough unique numbers exist in the range.

Can I generate decimals?

Yes. Choose one or more decimal places. Duplicate-free mode is only enforced for whole numbers.

Can I use this for a competition draw?

For casual use, it may be fine. For official, legal, commercial or regulated draws, use a process that can be independently audited.