A lottery is a form of gambling that involves drawing lots for a prize. It is often used for raising money for public projects and can be a painless alternative to direct taxation. The first recorded lotteries were drawn in ancient times and have been found on a variety of items, including keno slips from the Chinese Han dynasty (2nd century BC) and the Chinese Book of Songs (14th millennium BC). The term is from the Dutch noun lot (“fate”), from which English also derives the word “luck”.

A financial lottery, such as the state-run Powerball, is a common example of a lottery. Participants purchase tickets for a small sum of money and win prizes if the numbers on their ticket match those randomly chosen by machines or in a draw.

Another kind of lottery is a system for distributing government services such as education or housing. Some states have a lottery for units in a subsidized housing complex or kindergarten placements at a good public school, while others organize lotteries for public works such as road construction and water distribution. These lotteries are often criticized as addictive forms of gambling and can have unintended consequences.