Draw fair random numbers in any range — for raffles, draws, team picks, or settling who goes first.
Set a minimum, a maximum, and how many numbers you want (1-100), then press Generate. Numbers come from the browser’s cryptographic random source, with an optional no-repeats mode for draws and raffles where each number may only be picked once.
How to generate a random number
1Set your minimum and maximum — for example 1 and 100.
2Choose how many numbers to draw (1 to 100), and toggle "no repeats" if each number may only appear once.
3Press Generate — your numbers appear instantly, sorted and ready to copy.
They come from crypto.getRandomValues(), the browser’s cryptographically secure generator — the same source used to create encryption keys. Unlike Math.random(), its output is statistically uniform and unpredictable, and we map it to your range without modulo bias.
Yes — switch on "no repeats" and every number in a single draw is unique, like pulling numbered balls from a bag without putting them back. That is the correct mode for raffles, prize draws, and assigning teams.
Leave the defaults (min 1, max 100, count 1) and press Generate. Every number from 1 to 100 has an exactly equal 1% chance — there is no pattern, and previous picks never affect the next one.
Yes — set the range to your ticket numbers, switch on no-repeats, and generate as many winners as you need in one draw. Because each draw is cryptographically random and independent, it is fair to every entrant.
Modulo bias is a subtle flaw where naive "random % range" code makes low numbers slightly more likely. This tool uses rejection sampling instead, so every value in your range is exactly equally likely — no bias at any range size.
Any whole-number range from -1,000,000 to 1,000,000, and up to 100 numbers per draw. For lottery-style draws (e.g. 6 unique numbers from 1-49), set min 1, max 49, count 6, no-repeats on.
Yes, free — grab the iframe snippet at the bottom of the page. It drops the full generator into any blog, classroom page, or forum post with no code beyond copy-paste.
Cryptographically secure pseudo-random — seeded from real hardware entropy by your operating system, then expanded by an algorithm vetted for unpredictability. For draws, games, and decisions it is indistinguishable from true randomness.
Embed this random number generator on your site — free
Teachers, bloggers, league organizers: paste this snippet into any page. No attribution needed beyond the built-in link.