A lottery is a game in which the players pay money to enter. The winners receive a prize, usually a large sum of cash or goods. People have used lotteries for centuries. The earliest known lotteries were conducted by towns for raising funds to build walls and town fortifications. These were the first public lotteries and are recorded in town records from the 15th century, but there is evidence that they date back much earlier.

State lotteries started to become popular in the 1960s after New Hampshire introduced the first modern state lottery in 1964. Lotteries were seen as a way to raise revenue for education, veterans’ health programs, and other state services without raising taxes on the middle class and working class.

In the past, state lottery commissions promoted the message that playing a lotto was a civic duty that every citizen should do, even if they lose. This message is a bit of a deception because it obscures the regressivity of the lottery. The truth is that most players come from the 21st through 60th percentiles of income distribution, and they tend to be lower-income, less educated, black or Hispanic, male, and younger. They also spend a larger share of their income on lottery tickets than do other gamblers.

While states typically claim that a portion of lottery revenues are earmarked for education, these dollars can often be shifted to other purposes. This is not surprising because a significant amount of research shows that lotteries have no positive impact on education.