A lottery is a type of gambling game that involves paying a fee to participate…