Skip to main content
SwiftTools

Random Number Generator

Free random number generator for any range. Pick one or many numbers, with or without repeats, for games, raffles and testing.

Allow duplicatesSort ascending

Press “Generate numbers” to get a random set.

About Random Number Generator

Generate one or more random numbers within a range you choose. Great for picking a winner, rolling "dice", choosing a sample, or filling a test with random values. You can allow or block repeats and sort the output.

How to use it

  1. 1Set the minimum and maximum.
  2. 2Choose how many numbers to generate.
  3. 3Decide whether repeats are allowed and whether to sort.
  4. 4Click Generate, then copy the result if you need it.

Examples

Pick 3 from 1 to 100, no repeats

Input
min 1, max 100, count 3, no repeats
Result
42 · 77 · 13

Roll a d20 five times

Input
min 1, max 20, count 5
Result
14 · 3 · 20 · 8 · 11

Frequently asked questions

Are the numbers truly random?

They use your browser cryptographically-secure random source when available, which is more than enough for games, raffles and testing. For gambling or security-critical uses, follow your jurisdiction rules.

Can I get the same number twice?

Only if "allow repeats" is on and the range is large enough. With repeats off, every number in the result is unique.

Do I need an account?

No - it is free and runs entirely in your browser.