Unlike some gambling activities, the lottery isn’t simply a game of chance—it’s a public policy tool that’s used by state governments to allocate funds. Lottery is a method of selecting the recipients of a prize or grant, often for specific purposes such as building roads or purchasing fire trucks. Lotteries also can be a way to allocate units in subsidized housing or kindergarten placements at a reputable school.

The concept of using a random process to determine fates dates back to the biblical Book of Numbers (and earlier), but the lottery as a means of financing government projects is much more recent. The first recorded lottery, in which prizes were offered, was held in Bruges, Belgium, in 1466 for municipal repairs. Lottery games grew in popularity during the English colonial era, where they helped finance road construction, wharves, colleges and churches—even founding Harvard and Yale. In the 1740s, John Hancock ran a lottery to raise money for defense against marauding French forces in Philadelphia and George Washington sponsored a lottery in 1768 to build a road across Virginia’s Blue Ridge Mountains.

Today, state lotteries are a thriving industry. But despite their broad popularity—and the public’s alleged love for them as a form of charity—there is some debate about whether they are good for society. In fact, there are a few key factors that influence states’ decisions to adopt and operate lotteries: