A lottery is a game in which one person or group wins a prize by…