Lottery is a type of gambling game in which people purchase tickets that have various numbers on them, and the winners are chosen through a process that relies entirely on chance. The prize for winning a lottery may be cash or other goods or services. Lotteries are common throughout the world, and they have been used to fund a variety of public projects.
Unlike other forms of gambling, a state-controlled lottery is regulated by law and overseen by a dedicated lottery board or commission. The commission sets the rules and procedures for the lottery, selects and trains retailers to sell tickets, prints lottery tickets, pays prizes, and collects and records ticket sales. The commission may also administer other tasks such as promoting the lottery, selling high-tier prizes, and paying taxes or other revenues from the lottery.
A major component of every lottery is a drawing, which determines the winners. This is usually done by thoroughly mixing the tickets or their counterfoils, such as shaking or tossing. Computers have increasingly replaced this manual method for generating the winning numbers or symbols, as they can store large numbers of tickets in memory and quickly generate random combinations with high probability.
Many governments organize lotteries as a form of taxation, and the earliest known example was the Roman lottery, which raised funds for repair of the city. The Continental Congress voted in 1776 to establish a lottery to raise money for the American Revolution, but that effort was unsuccessful. Privately-organized lotteries continued to grow in popularity and provided major sources of funding for many American colleges, including Harvard, Dartmouth, Yale, King’s College (now Columbia), William and Mary, and Union.