Free · No sign-up · Works on any device

Random Number Generator

Pick a number between any two values. Generate a list of unique numbers, lottery picks, raffle draws — anything that needs a fair pick from a range.

Ready
Set a range below and click Generate.

How to use the random number generator

Three controls do almost everything. Set the minimum and maximum of the range you want to draw from, set how many numbers you need, and hit Generate. That's it for the common cases.

Two toggles cover the less-common ones:

  • Unique (no repeats) — every number in the result is different. Use this for lottery picks, raffle draws, or any time you'd be unhappy seeing the same number twice. The tool will refuse to generate more unique numbers than the range can supply.
  • Sort ascending — orders the results from smallest to largest. Useful for lotteries (where the underlying order doesn't matter) and harder to read at a glance otherwise.

Common uses

  • Lottery picks — set the range (1 to whatever) and the count, switch on Unique, hit Generate.
  • Raffle draws — number your entrants and let the tool pick a winner. Switch on Unique if you're drawing multiple prizes.
  • Random table lookups — generate one number to index into a list you've already written down.
  • Decision tiebreaks — for "1 means yes, 2 means no" style coin-flip equivalents.
  • Quick estimates — generating a single number is a good way to feel the shape of a range you're unfamiliar with.

About the randomness

This tool uses your browser's built-in random number generator. For everyday use — lottery picks, raffles, random selections, games — it's perfectly fine. It's not a cryptographically secure source, so don't use it for anything where the integrity of the randomness has legal or financial consequences. If you're running a regulated draw, use a certified RNG.

Frequently asked questions

How does the random number generator work?

Type a minimum and maximum, choose how many numbers you want, and click Generate. The tool picks numbers uniformly at random in that range — every number is equally likely. Everything happens in your browser; nothing is sent to a server.

Can I generate unique (no-repeat) numbers?

Yes. Switch on the Unique toggle and every generated number will be different. Useful for lottery picks, raffle draws, and any time you want to pick several distinct numbers from a range.

What's the maximum range?

You can use any whole numbers from −1,000,000 up to 1,000,000. The count of numbers per generation is capped at 1,000 to keep the page responsive.

Can I generate lottery numbers?

Yes. Set the range (for example 1 to 49 for a typical UK lottery), set the count (6), turn on Unique, and click Generate. Tap Sort if you want them in ascending order. Then tap Copy to put them on the clipboard.

Is the randomness really random?

It uses JavaScript's built-in random number generator, which is great for everyday use — lottery picks, raffle draws, decisions, prompts. It is not cryptographically secure and should not be used for anything where the integrity of randomness has legal or financial consequences (regulated gambling, secure key generation, etc.).

Does Spinly save my generated numbers?

Recent generations are kept only in this browser tab and clear when you close it. Nothing is uploaded or stored anywhere else.

Can I use this on mobile?

Yes. The whole page is mobile-friendly — buttons are big enough to tap, the result display stays readable, and history scrolls.

Recent generations

Kept in this browser tab only.

Nothing generated yet.

Organiser/testing controls

Off

Fair mode is the default. Turn these controls on for demos, testing, storytelling, private agreed sessions, or controlled setups. Do not use controlled outcomes for paid, regulated, public, or deceptive draws.

Normal random number generation. This remains the default whenever advanced controls are off.

Queue one exact next number. It is used once, then clears automatically and returns to fair mode.

Enter numbers in order, separated by commas or spaces. Each valid number is consumed by the next generated result.

Change probability with numeric weights. Weight 0 blocks a value or range, 1 is normal, and 2 is twice as likely as 1.

Advanced controls:Off
Current mode:Fair
Queued preset number:none
Sequence values left:0
Weighted rules active:no