Online roulette uses a built-in random number generator that decides the outcome of each spin. That is software that randomly chooses winning numbers, and ensures fairness.