The casting of lots for determining fates and rewards has a long history (including several instances in the Bible). Public lotteries offering tickets to win money prizes for various public purposes may have begun as early as the 15th century in the Low Countries. For example, records in Bruges indicate that a lottery was held on 9 May 1445 to raise funds for town walls and help the poor.

In modern state lotteries, prizes range from very large sums to a few hundred dollars, with the size of the prize reflecting the total number and value of tickets sold. The money raised is pooled and the winners are selected at random, with the odds of winning being roughly proportional to the number of tickets sold. Typically, the profit for the promoter and any taxes or other revenue are deducted from the prize pool before distributing the proceeds.

A lottery is also a method of raising money for state and other public charitable purposes, and it has wide appeal with the general public. It is a popular way to finance such diverse projects as paving streets, building roads, and constructing public works projects, as well as for funding colleges, churches, and local charities.

In addition to its broad popularity, the lottery is a source of controversy because it has been criticized for promoting addictive gambling behavior and imposing a substantial regressive tax on lower-income groups. In addition, many people argue that it is inappropriate for the state to run a lottery because of the potential conflicts of interest between its desire to increase revenues and its duty to protect the public welfare.