Random Number & Lottery Generator

Generate secure random numbers, unique raffle picks, dice rolls, and lottery tickets.

True Randomness & Probability in Sampling

This tool uses the browser Web Cryptography API (`crypto.getRandomValues`) to generate cryptographically uniform pseudo-random integers suitable for lotteries, games, simulations, and giveaways.

Sampling With vs Without Replacement

When "Unique" is checked, numbers are drawn without replacement so no duplicates occur. When unchecked, each draw is independent (with replacement).

Step-by-Step Worked Examples

Lottery 6/49 Example

Draws 6 unique numbers between 1 and 49 with uniform cryptographic randomness, sorted in ascending order.

Frequently Asked Questions

How does crypto.getRandomValues differ from Math.random()?

Math.random() is predictable and non-cryptographic. crypto.getRandomValues() samples hardware entropy from the operating system for unpredictable, tamper-proof random values.