Emerging Systems

Two kinds of randomness, and what you can store

CODE  ·  2026-11-21   information-theoryrandomnesscompressioneducation

Most of the data a computer calls random is only statistically random. There is a second, stricter kind — algorithmic randomness — and the gap between them is where exact regeneration becomes possible, and exactly where it provably stops. None of this breaks Shannon: you cannot losslessly store data below its true entropy. The subtlety is that "true entropy" is defined relative to a model of the source, and there are two models worth separating.

Two definitions that are easy to confuse

Statistical randomnessAlgorithmic randomness
TestPasses the usual randomness tests — flat histogram, no detectable correlationHas no short description — the shortest program that outputs it is about as long as it is
Who decidesA statistical estimator reading local frequenciesThe existence or not of a generating program
Can look randomYesYes
Actually randomNot necessarilyYes, by definition

A standard pseudo-random generator produces output that is statistically random — it sails through the frequency tests — while being algorithmically trivial, because the whole stream is the output of a tiny program: a seed plus a rule. The estimator cannot see the program, so it reports maximum entropy. It is measuring the wrong thing.

The entropy bound, stated honestly

A single string can sit on opposite sides of "the bound," depending on which bound you mean. The assumed bound is what a general-purpose compressor computes from local statistics; for pseudo-random output it reports incompressible, a ratio near 1.0. The true bound is the entropy under the data's actual generating process — in the limit, its Kolmogorov complexity; for the same output that is just the seed, a few bytes.

So a string a compressor swears is incompressible can have a true information content of 128 bits. Reaching that content does not break Shannon; it means the assumed bound was computed under the wrong model. On ordinary, statistically-structured data the two bounds nearly coincide and a good compressor is already close to them — there is no gap to exploit. The gap only opens when data is statistically random but algorithmically simple.

You can run this yourself in the entropy observatory: a generator stream and a cryptographic stream both pass the uniformity check, yet one is stored as a 4-byte seed and the other cannot be compressed at all.

Two regimes, and where regeneration helps

RegimeWhat it isWhat it means for storage
Statistical structureOrdinary files — text, code, filesystemsA normal compressor is already near the bound and usually wins on size. Regeneration's value here is not a smaller footprint — it is producing the bytes at runtime, on demand, which is a different cost than moving them across a bus.
Algorithmic structureGenerator-derived data that looks randomThe description collapses to the seed. This is the only place the assumed bound is actually beaten — and it requires that you own, or can recover, the generator.

There are two independent axes here. One is footprint versus entropy, where ordinary compressors are hard to beat. The other is cost to regenerate versus cost to fetch, the memory-bandwidth question that dominates real machines. Confusing the two is how claims get overstated.

The wall

There is no general method. For genuinely random data, no short description exists — a counting argument guarantees most strings are incompressible. For a cryptographic generator, recovering the seed from the output is infeasible by design. You win on designed or weak-generator data and you win nothing on true-random or crypto-strength data. That boundary is Kolmogorov complexity and computational hardness; it is not something to push past.

Scope

This page concerns the public mathematics of randomness and compression — Shannon's theorem, Kolmogorov complexity, the statistical tests, and pseudorandom generators. The specific method behind our engine is patent-pending and is deliberately not described here. The commons is the mathematics; the method is the only thing held back.

Prior work: Shannon (1948); Kolmogorov (1965); Impagliazzo and Wigderson (1997) on hardness versus randomness; Lempel and Ziv (1977) on dictionary compression.

← Back to the library