A PRACTICAL NUMBER PICKER

Random Number
Generator

Choose inclusive whole-number boundaries, set how many results you need, and decide whether a number may appear more than once.

Your numbers will appear here

Set the boundaries

Enter a minimum and maximum whole number. Both ends are included, so a range from 1 to 6 has six possible values.

Choose the result rules

Request 1 to 100 results. Allow repeats for independent picks, or prevent repeats when each result must be different. Sorting changes display order only.

Generate and use them

Press Generate or submit from an input with Enter. Copy the list, generate another set with the same settings, or reset the controls.

A WORKED EXAMPLE

Draw numbered tickets with or without replacement

Imagine a classroom activity drawing five tickets numbered 1 through 24. Set Minimum to 1, Maximum to 24, and How many? to 5. For a draw with replacement, leave “Prevent duplicate numbers” off: the full range is available for every pick, so a number may appear again. For a draw without replacement, turn it on: each selected number is excluded from the remaining picks in that generated set, so all five results are distinct. The tool simulates these rules; it does not track physical tickets.

ABOUT THE TOOL

Made for quick, everyday picks

RandomTools creates one or more whole numbers between the boundaries you enter. It can help with a classroom activity, a casual game, a test input, or choosing a numbered item when every number in the range should have an equal chance.

The generator runs in your browser. It does not need an account, and the numbers you enter and generate are not sent to a RandomTools application server.

REPEATS AND RANGE SIZE

When should results be unique?

Use “Prevent duplicate numbers” when selecting different participants, assigning distinct numbers, or drawing several different values. For example, there are only three possible unique results from 4 through 6, so a request for four unique numbers is rejected with an explanation.

With repeats allowed, each pick can match an earlier one. The minimum and maximum are both eligible results, including when the range contains negative numbers or a single value.

HOW RESULTS ARE CHOSEN

Randomness and limitations

The page uses the browser’s Web Crypto random-byte API and rejection sampling to map those bytes to an integer in the chosen range without modulo bias. Unique results are drawn without replacement and without building an array as large as the full range.

This describes the implementation, not an independent audit or certification. Use the tool for casual selection; do not rely on it for passwords, cryptographic keys, regulated drawings, gambling fairness, financial decisions, or other consequential uses.

FAQ

Questions about the generator

Are the minimum and maximum included?

Yes. A range from 1 to 10 can return any whole number from 1 through 10.

What happens if I leave a boundary empty?

The generator reports which value is missing. It also rejects decimals, values outside the JavaScript safe-integer range, and a minimum greater than the maximum.

How many results can I request?

You can generate between 1 and 100 numbers per click. With duplicate prevention enabled, the requested quantity also has to fit inside the selected range.

Does sorting affect which numbers are selected?

No. Sorting only displays the selected results from low to high.

Can I generate another set?

Yes. Press Generate again with the same settings. Reset returns the boundaries and quantity to their defaults and clears the current result.

Can I copy the results?

After generating, press Copy. The page reports whether copying succeeded; if clipboard access is blocked, select the displayed values and copy them manually.

Last updated: