A random number generator is a software program that generates random numbers. It is used in online casino games to ensure that the results are genuinely random.