Then Skinner tried something different. He set up an experiment in which the number of presses needed to release a pellet changed randomly. Now the pigeon never knew when the food would come. Every reward was unexpected. The birds became excited. They pecked faster. Something was spurring them on to greater efforts. Dopamine, the molecule of surprise, had been harnessed, and the scientific foundation of the slot machine was born.