A lottery is a game of chance in which players pay for tickets and then hope to win prizes by matching numbers randomly drawn by machines. The winnings are then added to the jackpot, which can be won in the next drawing, or given away as a lump sum. There are a variety of ways to play, including buying tickets at retailers and entering online contests. The prize ranges from free goods to large cash prizes. Lotteries are popular with people of all ages and income levels, but are especially favored by the elderly.

Lotteries have long been used to raise money for a variety of public purposes. They are a form of “painless taxation” and are often promoted as an alternative to higher taxes or cutting services for the poor. The Dutch state-owned Staatsloterij is the oldest operating lottery (since 1726). In colonial era America, Benjamin Franklin ran a series of lotteries to raise money for a wide range of public usages. George Washington even sponsored a private lottery in order to purchase cannons for Philadelphia to defend against the British.

Since New Hampshire started the modern era of state lotteries in 1964, they have enjoyed broad public approval. This approval is especially strong when the proceeds of the lottery are seen as benefiting a specific public good, such as education. However, this popularity is not tied to the objective fiscal health of a state, and even when state government is in relatively good financial shape, lotteries gain widespread support.