Random Number Generator

Generate truly random numbers in any range.

Numbers are drawn with your browser's cryptographic random number generator. Nothing is sent or stored anywhere.

About this tool

Picking random numbers fairly is harder than it looks, humans are predictably non-random, and naive code random isn't much better. This free generator uses your browser's cryptographically secure random source to produce unbiased numbers in any range you set, from a single dice roll to a thousand-number batch.

The unique-numbers mode draws without replacement, making it ideal for raffles, giveaways, fantasy drafts, and sampling. Optional sorting returns the results in order for easy reading, and one click copies everything to your clipboard.

How to use the random number generator

  1. 1Set your minimum and maximum values.
  2. 2Choose how many numbers to generate.
  3. 3Toggle "unique numbers" to avoid repeats, and sorting if you want them ordered.
  4. 4Click Generate and copy the results.

Good to know

Everything runs locally with no tracking and no account. For random strings and IDs rather than numbers, see the UUID and Password generators.

Frequently asked questions

They use your browser's Web Crypto API, a cryptographically secure random source, far better than Math.random() for anything where fairness matters.

More free tools you might find useful.

Part of Generators on JoliTools, free tools, no sign-up.