A Random Number Generator (RNG) is utilized in slot machines to determine the outcome of each spin once you hit the spin button. RNGs ensure fair play in both online and land-based casinos.