Examples
A full-byte alphabet biased toward A
Start with one of every byte, then add sixteen copies of A. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.
Input
272 bytes
DownloadExpected answer
Tolerance ±2.4e-10240A full-byte alphabet biased toward B
Start with one of every byte, then add sixteen copies of B. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.
Input
272 bytes
DownloadExpected answer
Tolerance ±2.4e-10240A full-byte alphabet biased toward C
Start with one of every byte, then add sixteen copies of C. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.
Input
272 bytes
DownloadExpected answer
Tolerance ±2.4e-10240A full-byte alphabet biased toward D
Start with one of every byte, then add sixteen copies of D. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.
Input
272 bytes
DownloadExpected answer
Tolerance ±2.4e-10240A full-byte alphabet biased toward E
Start with one of every byte, then add sixteen copies of E. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.
Input
272 bytes
DownloadExpected answer
Tolerance ±2.4e-10240Format reference: Chi Square background and specification
What does this statistic measure?
For each of the 256 byte values, this tool compares its observed count with the expected count of input length divided by 256. It sums (observed − expected)² / expected. The input AAAA produces 1020. This is not a contingency-table test, a p-value calculator or proof that data is encrypted.