A lottery is a form of gambling that offers prize money to participants who pay…