A lottery is a game in which a group of people choose tokens and then…