Method and sources
How we calculate
- Every rule comes from the source listed below and is explained on the calculator's page.
- The calculation runs in your browser; the page shows the working with your numbers.
- Results are rounded only when they are displayed.
How we check
- Every rule has test cases with values taken from its source.
- All tests run automatically before each release; if one fails, nothing is published.
- Every number in tables and examples comes from the same code as the calculator.
Sources
| Rule | Source | Verified on |
|---|---|---|
| Unbiased draw: 32-bit random words, words at or above 2^32 minus (2^32 mod n) discarded, index = word mod n | NIST SP 800-90A Rev. 1, Appendix A.5.1, The Simple Discard Method | |
| Random words from the browser's cryptographic generator (crypto.getRandomValues) | W3C, Web Cryptography API | |
| Shuffle: Fisher-Yates, every order equally likely | Knuth, The Art of Computer Programming, vol. 2, ยง3.4.2, Algorithm P | |
| CSV export: comma-separated, fields with a comma, a quote or a line break quoted, quotes doubled | IETF RFC 4180, Common Format and MIME Type for CSV Files, section 2 |
Found a mistake?
Email us the calculator, what you entered and the result you expected at contact@thewheelsays.com.