How to use: 1) Select a task mode (Winner Draw, Balanced Team Grouper, Integer Range, or Dice/Coin); 2) Enter your candidate list or range bounds and count; 3) Click Run Random Draw to generate, copy, or download the result.
Unbiased cryptographic algorithm: Unlike Math.floor(Math.random() * n) which suffers from modulo bias, this tool draws 32-bit unsigned integers u from crypto.getRandomValues and rejects any sample u >= 2^32 - (2^32 mod n) before returning u mod n, paired with an unbiased Fisher-Yates shuffle.
Worked example: From a 6-person roster (Alice through Fiona), draw 2 unique winners without replacement or partition into 2 balanced groups of 3 members each.
Bounds & limitations: Supports up to 5,000 candidate entries, up to 100 groups, and integer ranges within [-10^9, 10^9]. Intended for classroom, team, and tabletop utility use, not regulated lottery or legal notarization.
Privacy guarantee: All rosters, names, and draw results are computed strictly in local browser memory and never transmitted to any server.
Technical references: W3C Web Cryptography API (Crypto.getRandomValues), Fisher-Yates-Knuth unbiased shuffle (TAOCP Vol. 2 Algorithm P), and NIST SP 800-90A random number generation guidelines.
Run classroom draws, raffles, balanced team splits, random integer sampling, and dice/coin rolls using Web Crypto rejection sampling with zero modulo bias.