How Slot Machines Work