Lottery is a form of gambling that involves drawing random numbers. Some governments outlaw this form…