Lottery is a form of gambling whereby participants purchase tickets and win prizes by matching random numbers. Some state-run lotteries have a charitable element, with some of the proceeds used for public projects. Others use the funds to fund state treasuries, and some states limit ticket sales to those who have registered as “taxpayers.” Regardless of how they are run, lottery schemes rely on an inextricable human impulse to gamble.

Whether it’s the billboards on the highway or the TV commercials, there’s no mistaking what lottery marketers are trying to do. They are dangling the promise of instant riches, which is an especially tempting lure in an age of inequality and limited social mobility.

While the casting of lots to make decisions or determine fate has a long record in history, using it for material gain is far more recent. Lotteries were first arranged in the medieval period and spread to the English colonies in the 1500s, where their popularity grew rapidly. By the 17th century, a number of public lotteries existed, some organized by the government and some by licensed promoters. These were popular and helped to finance such projects as the building of the British Museum and the repair of bridges, and later financed the supply of guns for the defense of Philadelphia and rebuilding Faneuil Hall in Boston.

But critics point out that lotteries are not only addictive and offer little in return for the cost of a ticket, but also tend to have a regressive impact on lower-income groups. And they argue that state officials who establish and run these schemes often do not take a broad public welfare view when setting their policies or overseeing the industry.