A lottery is a game in which people pay to enter a draw for prizes…