These algorithms have different purposes but are primarily implemented to prevent players from cheating or manipulating the system in any way. The most common type of algorithm casinos use online is a Random Number Generator (RNG). This generates random numbers which determine the outcome of each game.