Have you ever wondered how a digital slot machine decides when to hit a jackpot, or how a video game determines the loot you find in a chest? The secret ...