The lottery has been a popular form of gambling for centuries, with people dreaming of…