A lottery is an arrangement in which prizes are allocated to some or all members of a class by means of a process that relies entirely on chance. Lotteries may be organised for the distribution of money or goods or services, for the allocation of jobs, or for many other purposes. Modern state-sanctioned lotteries usually involve payment of a consideration (money or property) for a chance to win a prize.

Modern lotteries are a major source of revenue for governments, charities and private companies. They are often used to promote other gambling activities, such as casinos and video poker. They are also a common method for collecting taxes. Although the use of chance to decide destinies and fortunes has a long history in human culture, the modern public lottery is relatively recent. The first state-sponsored lotteries were in medieval Europe, while the first modern commercial games were launched in Britain in 1889 and in the United States in 1902.

Despite their broad popularity, lottery systems remain vulnerable to criticism. These criticisms generally focus on specific features of the system, including its impact on compulsive gamblers and its regressive effect on lower-income groups.

Nevertheless, the fact that people continue to play lotteries suggests that they are attracted by two important messages. The first is the idea that the experience of buying a ticket and scratching it is fun. The second message is the belief that winning the lottery is a meritocratic process in which everybody has the same chance of becoming rich.