Random Number Generator

Generate good or poor quality random numbers for testing

โš ๏ธ Educational Purpose Only

Uses a simple Linear Congruential Generator (LCG) like PHP's old rand(). Has obvious statistical flaws and should never be used in production!

0%
Generating random numbers...
Generated
0
RNG Type
-
Range
0-255
Estimated Bits
0

            

About This Generator

This tool provides two types of random number generators for testing purposes:

Good RNG (Cryptographically Secure)

Uses the browser's crypto.getRandomValues() which provides cryptographically secure random numbers. This implementation:

Poor RNG (Linear Congruential Generator)

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:

Why Use Both?

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.

โ† Back to Validator