The algorithm used in online roulettes is typically a random number generator (RNG) algorithm.
Roulette is designed to be a game of chance, with the outcome of each spin being determined by random chance. The roulette wheel is carefully engineered to ensure that each number or color has an equal chance of being selected on each spin.