A slot machine is a computer-programmed device that uses a random number generator to generate random numbers. The computer checks for a number of symbols suitable for enabling an active payline. Then the engine begins to rotate. After a certain number of revolutions, the engine stopped.