this contract is written by me . In this contract only user can generate random number and find winner in this smart contract , we build some extra features :-
- this contract is reuseable due to removeAllUser() function . Due to this function , after find winner you can restart the contract with zero users
- owner have facility to give their ownership to other persons
- you can use totalBalance() function to find total ether (anybody can run this and see the amount)
- anybody can see the owner address using deployerAddress() function (anybody can see)
- you can use totalUser() function to find , how many person participate in lottery
- winner can only find by owner , using random number generated by code