A few questions come up about what happens behind the scenes. When a slot machine is reset after a jackpot or a fault, nothing about its odds changes; the generator keeps running. When a machine malfunctions, the rule printed on most games voids pays and plays, and the logged result settles any dispute. Slot machines cannot be adjusted on the floor without approval and new software. Hacked machines are a rare crime, not a player strategy, and old slot machines are usually scrapped or sold on to collectors.
Slot machines determine a payout in two steps. A random number generator picks a result the instant the spin button is pressed, and the pay table converts that result into a win or a loss. Slots are actually random in this sense: no spin remembers the last, and a machine is never due. What the operator sets is the return to player, the share of stakes paid back over millions of spins, which is fixed in the game's code.
Paylines on a slot machine are the patterns across the reels that count as a win, from a single middle line on classic games to hundreds on modern ones. Megaways games change the number of symbols on each reel every spin, giving tens of thousands of ways to win. The buttons set the stake and the number of lines. Which type of slot machine is best depends on what a player wants: steady small wins, or rare large ones.