Gallery of Babel · the math

What are the odds of finding a real picture in the Gallery of Babel?

Practically zero. The gallery holds about 7.9 × 107,224,719 different 1000 × 1000 images. If you looked at a billion random ones every second since the Big Bang, the share of the gallery you'd have seen would start with more than 7.2 million zeros after the decimal point. A randomly chosen picture there will look like TV static.

Every one of those images hangs somewhere in the halls. Take a walk and see what you find.

Walk the Gallery of Babel

Questions

How many images are in the Gallery of Babel?

About 7.9 × 10^7,224,719. That's 16,777,216 possible colors for each of the 1,000,000 pixels in a 1000 × 1000 image, or 2^24,000,000. Written out, the number has 7,224,720 digits. The developer gives the same figure on the game's itch.io page.

Is a photo of me in the Gallery of Babel?

By the gallery's premise, yes: every possible 1000 × 1000 image is in it, so any photo of you shrunk to that size is somewhere in the halls. The catch is finding it. Picking images at random, the chance of landing on it is 1 in about 7.9 × 10^7,224,719.

What are the odds of finding anything coherent?

Even if you generously count 10^100 different images as recognizable — far more than the roughly 10^80 atoms usually estimated for the observable universe — the chance that a random image is one of them is at most 1 in 10^7,224,619.

Why does every image look like noise?

In a random image every pixel is independent. Two neighboring pixels land within 10 shades of each other on red, green and blue only about once in 1,800 tries, while a smooth sky, an edge or a face needs thousands of neighbors to agree.