Lottery is a game in which people have a chance to win a prize by…