Online casino games work in much the same way as regular games found in real casinos. Only in the first case, it is a simulation (which, nevertheless, does not change the outcome of the game), and in the second, it is a real game.