A lottery is an arrangement in which prizes are allocated by chance. It may take the form of a pool or collection of tickets and their counterfoils from which winners are drawn. In modern lotteries, this pool is thoroughly mixed by some mechanical means, such as shaking or tossing; the use of computers in this process is increasing. This randomizing procedure is intended to ensure that the selection of winners depends on chance only, not any favored group or other considerations.
State governments, and to some extent many other countries, run lotteries as a form of gambling to raise money for public purposes. These lotteries typically win broad popular approval, especially when they are portrayed as helping to fund a specific public good such as education. Lotteries are particularly popular during times of economic stress, when the prospect of tax increases or cuts in public programs is a concern.
Nevertheless, lotteries do not necessarily make states better off. The fact is that most of the people who play them are not rich, and their winnings are not enough to give them a significant boost in living standards. Moreover, the percentage of Americans who play the lottery is disproportionately low-income and nonwhite. As a result, lotteries are not bringing in the sort of middle-class crowd that could help to balance state budgets. Instead, they are largely catering to the interests of lower-income and less educated citizens.