OOnDevice

Random Number Generator

Generate cryptographically random numbers with custom range, count, uniqueness, and sorting options.

Works offlineNothing uploaded
Sort:

How to use it

1

Set the range

Enter the minimum and maximum values for your range.

2

Generate a number

Click generate to get a random number in your range.

3

View results

See your random number and generation history.

When to use Random Number Generator

Your team has fifteen names in a hat for the holiday gift exchange and you want the draw to be provably fair — not "I promise I shuffled." Set a range, toggle unique results so no number repeats, generate, and share the screen. The generator uses crypto.getRandomValues, pulling entropy directly from the operating system rather than a software algorithm that cycles predictably, so each result is cryptographically random. Set the minimum to 1, the maximum to 100, generate five unique numbers, and you have a lottery draw no one can question. Or set the range to match a spreadsheet row count and pick a random sample for a survey. Results appear in order or sorted ascending and descending. Everything runs in the browser tab — no server, no log of what you generated.

  • Draw raffle winners from a list of ticket numbers
  • Pick a random row from a spreadsheet for a user interview
  • Assign secret gift exchange numbers to a team of fifteen

About this tool

Picking a winner for a raffle, assigning numbers for a classroom draw, or just need a fair random value with no bias? Set your range, choose how many numbers you need, toggle uniqueness if duplicates aren't allowed, and generate. Uses the cryptographic random source built into your browser — not a pseudo-random formula that cycles predictably. The math runs locally in your tab, nothing is logged. Useful for giveaways, lotteries, random sampling, and any situation where the result genuinely has to be fair.

Frequently asked

Is this private? Does it work offline?
Yes. Numbers are generated on your computer using the Web Crypto API — no server call, works offline.
Are the random numbers truly random?
Yes. This tool uses crypto.getRandomValues(), which provides cryptographically secure random numbers from your operating system's entropy source.
Can I generate unique (non-repeating) numbers?
Yes. Toggle the 'Unique' option to ensure no duplicate numbers in your results. Note: the range must be large enough to accommodate the requested count.
What is the maximum range?
You can generate numbers in any range that fits within JavaScript's safe integer range (up to 9,007,199,254,740,991).
Can I sort the results?
Yes. You can sort the generated numbers in ascending or descending order, or leave them unsorted.