The lottery is a type of gambling in which numbers are drawn to determine a prize, sometimes including money or goods. Lottery may also refer to a random distribution of property such as land or slaves, or a method for selecting persons for military service or juries. Despite the association of lotteries with gambling, they are not always considered gambling. Rather, if the combined utility of monetary and non-monetary gain is high enough for a particular individual, then purchasing a lottery ticket will be a rational decision.

Historically, public lotteries have been used to raise funds for various purposes including construction of town fortifications and to help the poor. In the United States, the Continental Congress voted to establish a lottery in 1776 for the purpose of raising money to fund the American Revolution; and subsequently state governments established their own publicly run lotteries. Privately organized lotteries were common in the early days of the country and helped build such institutions as Harvard, Dartmouth, Yale, Union, King’s College (now Columbia), William and Mary, and many other colleges and universities.

Today, state lotteries generally follow similar models, including legislating a government monopoly for the lottery; hiring a public corporation to manage the lottery and oversee its operations; promoting the idea that playing the lottery is a fun and harmless activity; and expanding the number of games offered. In general, the lottery attracts a low-risk, high-reward population that is heavily influenced by socioeconomic factors. As a group, these people contribute billions to state revenue each year that could be better invested in things like retirement savings or child education.