1. Home
  2. Productivity tools
  3. Random Number Generator

Random Number Generator

Draw raffle numbers, pick a lottery line or choose a random number for a game. Results are fair and cannot be predicted.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Random Number Generator

  1. Set the range and how many numbers.
  2. Choose whether numbers may repeat.
  3. Generate.

Features

  • Any integer range
  • Unique numbers option
  • Sorted output
  • History

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Random Number Generator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Guide

Drawing random numbers for raffles, samples and games

Choosing “a random number” in your head isn’t random: people avoid repeats, favor certain digits and rarely pick the ends of a range. When fairness matters, as in a raffle, a sample for a quality check or a classroom game, use a generator. This one uses your browser’s cryptographic random source, so every number in the range has exactly the same chance.

The settings

  • From / To: the range, inclusive. Both ends can be drawn. If you swap them, the tool corrects the order.
  • How many: up to 10,000 numbers at once.
  • No repeats: each number can appear only once. It’s on by default, and it’s what most draws need.
  • Sort: shows the results from smallest to largest, easier to read for lottery-style lines or long lists.

Press Generate. A single number is shown large; several are listed and can be copied. Earlier results for this visit appear under History.

Raffles and prize draws

Number the tickets, then set From and To to the first and last ticket, How many to the number of prizes, and keep No repeats on. If you sold tickets 1–250 and have three prizes, you get three different winning numbers, each ticket with an equal chance. For a draw people watch, share your screen while you generate.

Random samples for audits and surveys

To check 10 invoices out of 480, or interview 25 customers out of a list of 1,200:

  1. Number the rows (most spreadsheets show row numbers anyway).
  2. Generate the sample size with No repeats and Sort on.
  3. Check those rows.

Random sampling avoids the bias of picking “the first ten” or the ones that look interesting.

Lottery lines and games

For a lottery-style line, for example 6 numbers from 1–49, use No repeats and Sort. Every combination has the same chance, so the generator only saves time; it can’t improve the odds. For board games and role-playing, the Dice Roller has the usual dice ready.

Settings for common jobs

Job From – To How many No repeats Sort
A number for a game 1 – 10 1 — —
A raffle with 250 tickets, 3 prizes 1 – 250 3 On Off (draw order = prize order)
Audit 20 of 1,200 invoices 1 – 1200 20 On On (easier to look up)
A lottery-style line 1 – 49 6 On On
Assign 30 students to random order 1 – 30 30 On Off

Keep No repeats off when values may repeat, such as simulating ten dice rolls with 1 to 6.

When it can’t help

  • Decimals: only whole numbers are generated. Scale them yourself, for example 1–1000 ÷ 100.
  • More unique numbers than the range holds: asking for 20 different numbers between 1 and 10 isn’t possible, and the tool tells you so.
  • Reproducibility: there’s no seed. If you need to repeat the exact same draw, as in published research, use statistics software with a documented seed.

Numbers are generated in your browser; nothing is sent anywhere. For drawing names instead of numbers, use the Random Name Picker, and for a quick yes-or-no, Flip a Coin.

Who generates random numbers

  • Raffle and giveaway organizers draw ticket numbers.
  • Teachers pick question numbers, seat numbers or random groups.
  • Auditors and quality controllers choose random samples of invoices, files or products to check.
  • Researchers randomly assign participants or select survey respondents.
  • Game players need a number in a range for board games and decisions.

A complete example: an audit sample

An auditor must check 20 of 1,200 invoices:

  1. Number the invoices 1 to 1,200 in a spreadsheet, in their natural order.
  2. Set From 1, To 1200, How many 20, No repeats on, Sort on.
  3. Generate; the sorted list makes it easy to pull the invoices.
  4. Save the list with the date in your audit notes, since results can’t be reproduced later.

Tips

  • With No repeats on, asking for more numbers than the range contains shows an error; check the range.
  • For a lottery-style line, use 1–49 with 6 numbers, no repeats, sorted.
  • Results come from the browser’s cryptographic random generator, so each number in the range is equally likely.

Checked against the current version of the Random Number Generator on .

Frequently asked questions

How do I draw raffle tickets?

Set From and To to the first and last ticket numbers, set How many to the number of prizes, and keep "No repeats" on so a ticket can't win twice. Each ticket has the same chance.

Can I generate decimal numbers?

No, only whole numbers. For a random decimal, generate a whole number in a larger range and divide, for example 1 to 1000 divided by 100 gives two decimal places between 0.01 and 10.

Can it help me win the lottery?

No tool can. Lottery draws are random, so any set of numbers has the same chance. The generator is handy for picking a line quickly, not for improving the odds.

Can I get the same numbers again later?

No. There's no seed, so every draw is new. For research that must be reproducible, use statistics software with a fixed seed and document it.

How random are the numbers?

They come from crypto.getRandomValues, the same source browsers use for encryption keys, without bias.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.