A lottery is a form of gambling in which numbers are drawn at random for prizes. Some governments outlaw it, while others endorse it and organize state-wide or national lotteries. The prizes are often cash or goods, although some lotteries award only a single prize item. Lotteries are usually promoted by the sale of tickets, which must be purchased to have a chance of winning. Unlike most forms of gambling, the lotteries that are run by governments are subject to strict rules and regulation.
Many states use the lottery to raise money for public purposes, including education, medical research, and community services. Some have also used it to promote tourism and attract foreign investors. Others have earmarked the proceeds for particular programs, such as public education (though critics point out that this simply allows the legislature to reduce by the same amount its appropriations for that program from the general fund).
The majority of lotteries are run by government agencies and public corporations. These are distinguished from private corporations in that they are legally required to distribute the net profits (after paying costs and retaining some profit for the organizers) evenly among all players. They are also legally obligated to promote the lottery by paying for the right to advertise on television and in magazines.
Lotteries are a popular source of revenue for state governments, but they are not without problems. The first problem is the promotion of gambling. Advertising necessarily focuses on persuading people to spend their money, and this is at cross-purposes with the legitimate interests of the government in regulating gambling activity.