Random Generator
Generate random numbers, pick lottery numbers, or shuffle a list.
1Number Range
📖 How Random Generators Work
Cryptographic randomness: This tool uses the Web Crypto API (crypto.getRandomValues), which generates cryptographically secure pseudo-random numbers. Unlike Math.random(), which uses a simple algorithm that can be predicted, the Crypto API draws from your operating system's entropy sources (hardware noise, timing data, etc.).
Fisher-Yates shuffle: When shuffling a list or picking lottery numbers, we use the Fisher-Yates (Knuth) shuffle algorithm. This algorithm guarantees that every permutation is equally likely, making it the gold standard for fair random ordering.
Fair drawings and contests: For official drawings or giveaways, transparency is key. Consider screen-recording the draw process, having witnesses present, and documenting the method used. This tool's use of crypto-grade randomness ensures each number has an equal probability of being selected.
Korean Lotto 6/45 (로또 6/45): South Korea's national lottery launched in 2002. Players choose 6 numbers from 1 to 45. The jackpot prize pool grows until won. Drawings are held every Saturday evening. While no strategy can improve your odds (each combination has a 1 in 8,145,060 chance), using a random generator ensures you avoid common number patterns that lead to shared jackpots.
True randomness vs pseudo-randomness: No computer can generate truly random numbers -- they are technically "pseudo-random." However, cryptographically secure pseudo-random generators (CSPRNGs) like the one used here are considered sufficiently random for all practical purposes, including security applications and fair gaming.