There are some participants which buys lottery on exchange of ether.
There is Manager who controls everything in the system.
Random participant is selected as a winner of lottery.
Some ether is goes to the wallet of Manager as a fees.
Rest of Money goes to winner.