A lottery is a form of gambling in which numbered tickets are drawn at random for a prize. Some governments outlaw lotteries, while others endorse them to some extent, organize a state lottery or national lottery, and regulate them. In addition, some governments promote the use of lotteries to help fund public projects, such as schools, churches, canals, roads, and bridges. The first recorded lotteries were held in the Low Countries in the 15th century, for such purposes as raising money for town fortifications and helping the poor.

In the immediate post-World War II period, state officials promoted lotteries as a way of funding government services without having to raise taxes on the working class and middle class. This arrangement seemed to work well until inflation began eroding the social safety nets that states had built up and started forcing them to look for new revenue sources.

Typically, state lotteries begin by creating a monopoly for themselves; they then establish a government agency or corporation to run them (as opposed to licensing a private firm in return for a cut of the profits); start with a modest number of relatively simple games; and then, as revenues grow, gradually expand into more complex games, including scratch-off tickets, which have lower prize amounts but higher odds of winning than the traditional lottery games. Many players, especially those whose winnings are small, become bored with the limited number of available games and start to seek out other ways to increase their chances of winning.