For many years, playing the lottery has meant entering into a simple agreement: choose your numbers, buy a…