Transcript
HostIf you ever find yourself in a certain office lobby in San Francisco, you might see something strange. It's a wall covered in about a hundred glowing lava lamps. They're not just there for the vibe, though. Those lamps are actually helping to run a massive chunk of the internet because they provide something that a computer, on its own, simply can't create. It turns out that for all their power, computers are famously bad at being random. Why is a simple task like picking a number out of a hat so hard for a machine?
GuestIt's because of how a computer is built at its core. We designed them to be the perfect logic machines. A computer is what we call a deterministic system. That's just a way of saying that if you give a computer the same starting point and the same set of steps, it has to give you the exact same result every single time. That's the whole point of a machine. You want your laptop to be steady. If you're working on a spreadsheet, you don't want the computer to suddenly decide to be random and change your numbers. If a computer were truly random on its own, we would say it was broken. It has no gut feeling and no whims. It can only follow a path that has been laid out for it. So, for a computer to pick a number between one and ten, it has to look for an answer outside of its own logic.
HostThat feels like a bit of a letdown. I mean, I see random stuff in games or when I shuffle a playlist all the time. It feels like the machine is making a choice.
GuestIt feels that way, but most of the time, the computer is just faking it. It uses what we call a fake random number maker, or a PRNG. This is basically just a very long, very messy math rule. It starts with one single number called a seed. It plugs that seed into the math rule, and out comes a long string of numbers that look like a mess to a human. But here is the catch. Since it's just math, if you know that starting seed and you know the rule the computer is using, you can guess every single number it'll ever make. It's not a surprise at all. It's just a loop that's too big for our brains to see.
HostBut if it's just a big loop, then it's not actually random. Does that mean someone could figure out the pattern and cheat?
GuestPeople do it all the time. In older video games, players have figured out exactly how the math works. They can time their button presses or wait for a specific moment to force the game to give them the rare item or the monster they want. They're just gaming the math. Now, that's fine for a game, but it's a huge problem for things like secret codes or keeping your bank info safe. If a hacker can figure out the math rule your computer is using to hide your data, your security just vanishes. For the high stakes stuff, faking it's dangerous.
HostSo how do we get to the real thing? How does a machine that only follows rules find a way to be truly messy?
GuestIt has to go hunting for chaos in the physical world. This is called gathering entropy. Think of it like the computer keeping a bucket of true randomness that it constantly fills up with tiny, wild events from the world around it. For example, it might track the exact microsecond you hit a key on your board, or the way you wiggle your mouse. It might listen to the static in the air or the tiny swings in heat inside its own chips. In the Linux system, there's actually a special file called dev random that stores all this harvested noise. Every time your hard drive spins up, you're feeding the computer bits of chaos that it can use to build a better seed for its next set of numbers.
HostThat seems like a lot of work just to get a lucky number. Is there not a cleaner way to do this than watching how I move my mouse?
GuestIf you need the best of the best, you have to go even smaller. Engineers are now building tools called hardware random number makers. These don't look at mouse clicks. They look at the tiny bits of matter that make up our universe. This is the quantum level. In the world of atoms and light, things happen that are truly, deeply random. When an atom breaks down or a particle of light bounces, there's no hidden cause or math rule behind it. It's not like a coin flip, where you could guess the side if you knew the wind and the force of your thumb. At the quantum level, the universe itself is non-deterministic. By building sensors that watch these tiny particles, we give computers a window into the only part of nature that doesn't follow a predictable script.
HostThe wall of lava lamps in that lobby does the same thing, using cameras to watch the shifting shapes of the wax to keep the web safe.
GuestThose lamps are a perfect bridge between our predictable machines and the messy reality we live in.
HostIt's wild to think that the most advanced tools we have still need to watch a blob of wax or a stray atom just to keep us all guessing.
Made with Wander
A world of curiosity you can listen to. Explore endless questions, or ask your own.
Get the app