Lotteries are state-run contests that allow people to pay small sums of money in return for a chance at winning…