The way roulette works is that you guess where the ball will land, and the tighter your guess was, the more you win.
The number is picked randomly by spinning the roulette wheel and dropping a ball on it. Before this happens, all bets need to be made by placing chips on the roulette felt on desired spaces.