msg.value push() onlyManager modulo reset array Enter() Players Array PickWinner() Random Index Payout & Reset Players send ETH to enter the lottery contract. Player addresses are stored in a dynamic array. Only the manager can trigger the winner selection. A pseudo-random index is chosen via global variables. Balance sent to winner, and players array is cleared.