A lottery is a form of gambling in which a prize, usually money, is awarded…