Random Number Generator
Numbers here come from your browser’s cryptographic random source, not from a seeded pseudo-random sequence. Nothing is sent anywhere, and nobody — including this site — can reproduce your draw.
Generator Settings
Press Generate for a new draw. Changing any setting redraws automatically.
Where these numbers come from
This uses crypto.getRandomValues(), the browser's cryptographically secure
random source, which draws entropy from the operating system. That is a genuinely different
thing from Math.random(), which is a fast pseudo-random generator with internal
state that can, in principle, be inferred from enough output. For picking a raffle winner
either is fine; for anything where someone has a reason to predict the result, only the
first will do.
The generation happens entirely on your device. No request is made, no draw is logged, and the page works offline.
The modulo bias, and why it is avoided here
The obvious way to get a number from 1 to 49 is to take a random 32-bit value and use the remainder after dividing by 49. That is subtly wrong: 232 is not a multiple of 49, so the first few numbers in the range come up very slightly more often. The bias is tiny but it is real and it is systematic. This generator rejects and redraws values that fall in the uneven tail, which removes the bias entirely at the cost of an occasional extra draw.
Unique draws versus independent draws
With duplicates allowed, each number is an independent event — rolling 6 twice in a row is unremarkable. With duplicates disabled you are dealing from a deck: each pick reduces the pool, and the draw becomes a combination rather than a sequence of independent events. Lottery draws, raffle winners and sampling without replacement all need the unique mode; dice and coin flips need the other.
Randomness does not look random
Genuine random draws produce clusters, runs and gaps that feel wrong. Six random numbers from 1 to 49 will contain two adjacent values about half the time. People asked to make up random numbers spread them out far too evenly, which is precisely how fabricated data gets detected.
Frequently Asked Questions
Is this random number generator truly random?
Can I generate lottery numbers with it?
Does it store or send my numbers anywhere?
Why do I sometimes get the same number twice?
Sources
Official publications only. Links open the original document in a new tab.
- National Institute of Standards and Technology Special Publication 811 — Guide for the use of the SI Significant figures and rounding conventions
- National Institute of Standards and Technology CODATA fundamental physical constants Values of the fundamental physical constants