A lottery is a form of gambling in which people have the chance to win…