Lottery is a competition based on chance, in which numbered tickets are sold and prizes, such as money or goods, are awarded to the holders of numbers drawn at random. It can be a form of gambling, and some governments outlaw it. Other governments endorse it, organize a state lottery, or regulate its promotion and operation.
The earliest known lotteries were held during the Roman Empire as a way of dispersing fancy items such as dinnerware to guests at parties. Later, the Low Countries began organizing public lotteries in order to raise funds for town fortifications and other uses. The oldest running lottery is the Dutch state-owned Staatsloterij, established in 1726.
In modern times, lotteries usually give the winner the choice of receiving a lump sum payment or annual installments. The former option is most popular, but it can have disadvantages such as taxation. It can also be difficult to manage a large amount of cash, especially for those who may not have much experience with it.
The purchase of lottery tickets cannot be accounted for by decision models based on expected value maximization, because the cost is usually higher than the expected prize. Instead, people buy lottery tickets for entertainment value and the fantasy of becoming wealthy. This value is hard to quantify, but it can be significant for some people. The fact that lottery purchases are not entirely rational under expected value maximization is a serious problem, but it has not prevented many people from participating in the games.