When you pull the handle or push the 'Spin' button you aren't really initiating anything except the spinning of the reels which is merely for show. These random numbers correspond to positions on each of the reels in the machine. Slot machines contain a 'random number generator' (RNG) micro-computer that constantly (even while the machine is not being used) spits out numbers.