Lottery:

A form of gambling in which tokens are distributed or sold and prizes, often money or goods, are drawn at random. People may also use the term to refer to an activity in which they think their fate is largely determined by luck, such as combat duty.

Lottery has been used as a means to raise funds for public purposes, such as building colleges, since the Revolutionary War. In the United States, the Continental Congress attempted to hold a lottery as a way to raise funds for the colonial army at the start of that conflict, and public lotteries remained popular throughout the country afterward. They helped finance projects as diverse as a battery of guns for the defense of Philadelphia and the rebuilding of Faneuil Hall in Boston. Privately organized lotteries were also common in the United States, with many such promotions helping to finance products and properties for more money than could be obtained from a regular sale.

The purchase of lottery tickets cannot be accounted for by decision models based on expected utility maximization. Instead, it is likely that people buy tickets because they believe that the entertainment value or other non-monetary benefits that they receive from the game outweigh the cost of the ticket. They may also have a belief that they will be able to use the prize money to escape from an undesirable situation or to obtain something that they would otherwise not be able to afford.