The lottery is a popular form of gambling. Americans spend about $100 billion on tickets each year. While the states that run them promote these games as ways to raise revenue, it is not clear how significant this income really is in broader state budgets and whether or not it is worth the cost to people who lose.

A lottery is a competition in which numbered tickets are sold and prizes are given to the holders of numbers drawn at random. The term lottery is also used to refer to a game in which numbers are drawn by machines or computer programs rather than human beings.

Public lotteries are widely accepted as a mechanism for raising money to pay for government projects. At the outset of the Revolutionary War, the Continental Congress voted to use lotteries to help fund the Colonial Army. While the practice was eventually discontinued, smaller private lotteries continued to be held. In the 18th century, lotteries became more popular in the United States than in Europe and helped to finance Harvard, Dartmouth, Yale, and a number of other American colleges.

While the lottery does produce a substantial amount of revenue, it is also important to recognize that it can have negative impacts for the poor and problem gamblers, and it can run at cross-purposes with the broader public interest. It is a particularly dangerous instrument in this age of inequality and limited social mobility, because it is the kind of activity that entices people to take an enormous risk for an uncertain payoff.