Random ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Random Tools

Random Number Generator

Generate random numbers between any minimum and maximum, both included. Draw up to 10,000 at once, with no repeats, sorting and up to 4 decimal places.

View all tools
Result

Press “Generate numbers” to see the result.

How to use Random Number Generator

Enter a minimum and maximum, choose how many numbers and how many decimal places, then press Generate numbers. Keep No repeats ticked for unique draws and tick Sort from smallest for an ordered list.

  1. Set the rangeEnter the minimum and maximum, such as 1 and 100. Both ends can be drawn, and reversed values are swapped.
  2. Choose how many and the formatSet How many (1 to 10,000), the decimal places (0 to 4) and whether to separate results with commas, spaces or new lines.
  3. Generate numbersPress Generate numbers, and press again for a fresh draw. For a single number the chance of each value is shown.

Fair draws: every value equally likely

Numbers come from the browser's cryptographically secure random generator (crypto.getRandomValues), with rejection sampling so that no value in the range is favoured. The minimum and maximum are both possible results. A range of 1 to 6 behaves like a die, with a 1 in 6 chance for each face, and 1 to 100 gives each number a 1 in 100 chance; the Chance of each value line shows this whenever you draw one number. If the minimum is larger than the maximum, the two are swapped and a note tells you.

No repeats, decimals and large batches

With No repeats ticked, each value appears at most once, which suits raffle tickets, picking winners or handing out numbers. The range must hold enough values: 1 to 10 cannot produce 11 unique numbers, and the tool says so. With decimal places set, numbers are drawn evenly at that precision, so 0 to 1 with 2 decimal places has 101 possible values, 0.00 to 1.00. Untick No repeats to allow duplicates, as when rolling dice again and again. Sort from smallest orders the output, and the separator option makes it easy to paste into a spreadsheet.

Accuracy and data handling

General random results suit games and casual choices; use a cryptographic generator for passwords, tokens and keys. The calculation runs in your current browser; the tool code does not send the input to a processing API.

FAQ

How do I pick a random number between 1 and 100?

Enter 1 as the minimum and 100 as the maximum, leave How many at 1 and press Generate numbers. Both 1 and 100 can come up.

Can I generate several numbers without repeats?

Yes. Set How many, for example 10, and keep No repeats ticked. Tick Sort from smallest to list them in order.

Can it generate decimal numbers?

Yes. Choose 1 to 4 decimal places. For example, 0 to 10 with 2 decimal places gives values such as 3.27, and every value at that precision is equally likely.

How random are the numbers?

They come from the browser's cryptographically secure generator, which is suitable for games, classroom draws and sampling. For regulated prize draws, follow the rules that apply to you.

More Random Tools

Related tools