How the Lottery Number Generator Draws Each Ticket
AnyTool Lottery Number Generator produces every ticket in the browser using the Web Crypto API. For each line it builds the full range 1..N, shuffles it with a crypto-secure Fisher–Yates shuffle (secureShuffle, driven by secureRandomInt over crypto.getRandomValues with rejection sampling so there is no modulo bias) and takes the first K numbers, then sorts them ascending. Drawing this way guarantees the K main numbers are unique and that every K-subset of 1..N is exactly equally likely. Bonus or extra balls (such as a Powerball or EuroMillions Lucky Stars) are drawn the same way from a SEPARATE pool of 1..M, unique among themselves — so a number can legitimately appear as both a main number and a bonus number, exactly as in a real draw. Math.random is never used, and each of the up-to-50 requested tickets is drawn independently.
- Each line = secureShuffle(1..N) then take first K, sorted (unique main numbers)
- Crypto.getRandomValues + rejection sampling — no modulo bias, never Math.random
- Bonus / extra balls drawn from a separate pool of 1..M, unique among themselves
- Up to 50 independent tickets per click
- All draws run client-side — no server round-trip
