A lottery is a game of chance that gives participants the opportunity to win a…