Skip to content
PrivBay

Random number generator

Generate random numbers in any range, roll dice or draw names using your browser’s cryptographic random source.

Random tool

Up to 1,000 results. The minimum and maximum can both come up. Each name line can be drawn once.

Picked on this device. Nothing is saved.

Random result

—

How to generate random numbers

  1. Choose Numbers, Dice or Draw names.
  2. Set an inclusive integer range, dice sides or a list of names.
  3. Choose how many results you need, then select Generate.
  4. Copy your results. Select No repeats for distinct numbers.

Three ways to make a random choice

Numbers supports inclusive positive or negative integer ranges and up to 1,000 results. Distinct-number sampling avoids building an array as large as the range. Dice mode uses at least two sides per die and reports the total of the rolls.

Draw names accepts up to 1,000 non-empty lines. Entries are shuffled and the requested number is selected without replacement. Whitespace is trimmed, but duplicate names remain separate entries.

Everyday uses for random numbers

Random numbers settle small decisions fairly: who goes first, which question to ask next, or which entry wins a small classroom prize. Teachers use them to call on students, and developers use them to create sample data.

Use Dice when you have lost the dice for a board game, or when you need an unusual die. Use Draw names when your list has names instead of numbers, since each entry can be drawn only once. For a more visual way to choose, try the random wheel. For random login details, use the password generator. For math beyond random numbers, try the scientific calculator.

For a randomly generated number puzzle with one solution, try the Sudoku solver and choose Generate.

Frequently asked questions

Are both range endpoints included?

Yes. Minimum and maximum are both included. Use safe integers and a range containing no more than 4,294,967,296 distinct values.

Can numbers or names repeat?

Numbers can repeat unless No repeats is selected. Dice rolls can repeat. Name draws select entries without replacement, but repeated lines are treated as separate entries.

How random are the results?

The generator uses crypto.getRandomValues with rejection sampling to avoid modulo bias. It is useful for games and selections, but does not create a certified lottery audit trail.

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

Open Numbers, keep the minimum at 1 and the maximum at 100, then select Generate. Both 1 and 100 can come up.

Can I generate several numbers with no duplicates?

Yes. Set how many numbers you need, up to 1,000, and select No repeats. Your range must contain at least that many values.

Last updated November 6, 2026