RandomBasis

Number to draw

Random Number Generator

Pick a random number between any two values — with presets, batches and a no-repeat option.

Runs locally in your browser. Nothing you generate is ever sent to a server.

Press "Generate" to draw a number.

Common ranges

About this random number generator

Set a minimum and a maximum, press Generate, and you get a fair draw from that range. Use the presets for the ranges people reach for most — 1 to 10, 1 to 100, 1 to 6 for a dice roll, 1 to 2 for a coin flip — or type any pair of numbers you like, including negatives.

Picking a number in a specific range

The two boxes take any whole numbers, so a range can be as narrow as 1 to 2 or as wide as you need. Ranges larger than four billion are handled at full precision instead of quietly wrapping around, which is a common failure in simple generators. If the minimum is higher than the maximum, the tool tells you rather than returning something misleading.

Drawing several numbers at once

Raise the quantity to draw up to 100 numbers in a single press. By default each draw is independent, so a value can appear more than once, exactly like rolling the same die repeatedly. Turn on "No repeats" when you need every number in the batch to be different — for a raffle, a seating order, or picking lottery-style numbers. That mode needs a range at least as large as the quantity you asked for, and the tool will say so if it isn't.

Sorting and copying

Switch on sorting to see the batch arranged from low to high, which is easier to read when you have drawn twenty or more. The draw itself is unaffected — only the display order changes. "Copy All" puts the whole list on your clipboard, one number per line, ready to paste into a spreadsheet or document.

Common uses

How the randomness works

Each number comes from your browser's cryptographic random source through the Web Crypto API, not from a simple pseudo-random call. Values that would fall outside a clean multiple of the range are discarded and redrawn, which removes the modulo bias that makes naive generators slightly favour the lower part of a range. Batches without repeats use a Fisher-Yates shuffle driven by the same source, so every possible combination is equally likely. Nothing is sent anywhere: the whole draw happens on your own device.

How do I generate a random number between 1 and 10?

Press the 1-10 preset, or type 1 in the minimum box and 10 in the maximum box, then press Generate. The same works for any other pair of values.

Can I generate several numbers at once?

Yes. Set how many you want, up to 100, and they are all drawn in one press. Use Copy All to take the whole list with you.

How do I get numbers with no repeats?

Switch on No repeats. Every number in the batch will then be different, which needs a range at least as large as the quantity you asked for.

Can I use negative numbers or very large ranges?

Yes. Minimum and maximum accept negatives, and ranges far beyond four billion are handled at full precision rather than being silently truncated.

Is the number actually random?

Every draw comes from your browser's cryptographic random source through the Web Crypto API, with rejection sampling to remove modulo bias, so each value in the range has an equal chance.

Is this tool free to use?

Yes, completely free, with no sign-up and no limit on how many times you can generate.