A random number generator (RNG) is a computational or physical device designed to produce a sequence of numbers that lack any pattern. These numbers are typically used in various fields, including epidemiology, to ensure randomization and eliminate bias.