Lottery is a form of gambling that awards prizes to players who select numbers in a random drawing. Lotteries are popular with the general public and have broad support in states where they are legal. Lottery revenue can be used to fund a wide range of government programs, including education, infrastructure and crime prevention. The concept of a state lottery has evolved over time, with many new games and changes to the structure and operation of existing ones.

The history of lotteries dates back to ancient times. Ancient Greeks used them to distribute property and slaves. Benjamin Franklin held a lottery in 1776 to raise funds for cannons for the Continental Army during the American Revolution, and Thomas Jefferson tried his hand at a private lottery to alleviate his crushing debts.

In the modern era, the first modern state lottery was launched in New Hampshire in 1964, followed by New York and several other states. Today, 37 states and the District of Columbia operate lotteries.

While some people play the lottery simply because they like to gamble, the majority of lottery participants are not affluent. In fact, a large percentage of lottery players are in the 21st through 60th percentiles of income distribution. They spend a significant amount of their discretionary money on tickets and, for some, the lottery is their only chance to escape poverty.

Those who have won a large jackpot are likely to face substantial tax bills. Some may choose to fund a charitable entity, such as a private foundation or donor-advised fund, which can allow them to claim a large income tax deduction in the year they receive their lump sum payout.