The RNG is a computer program that generates random numbers, determining the outcome of each spin. It ensures that online slots are fair and unpredictable.