Slot machines use a random number generator (RNG) algorithm to determine the outcome of each spin. This algorithm generates a sequence of numbers that correspond to the symbols on the reels.
The modern slot machine uses an algorithm known as a random number generator, RNG, which does not use any form of memory to determine when a number should be generated.