Generate good or poor quality random numbers for testing
Uses a simple Linear Congruential Generator (LCG) like PHP's old rand(). Has obvious statistical flaws and should never be used in production!
This tool provides two types of random number generators for testing purposes:
Uses the browser's crypto.getRandomValues() which provides cryptographically secure random numbers. This implementation:
Implements a simple Linear Congruential Generator (LCG) using parameters similar to old C library implementations (a = 1103515245, c = 12345, m = 2^31). This is the same type of RNG used in PHP's old rand() function and has well-documented statistical flaws.
Known Weaknesses:
Compare results between good and poor RNG to understand how statistical tests detect quality issues. The poor RNG represents a realistic "almost good" implementation - the kind you might encounter from a buggy implementation or simplified version.