The lottery is a type of gambling in which participants pay to have a chance…