Random Number Generator (RNG) is a software or hardware component that generates random numbers based on a statistical algorithm. RNGs are often used in applications that require a high degree of randomness, such as in cryptography or games of chance.