A lottery is a game of chance in which you play a series of numbers to win a prize. Lotteries are legal in some countries, while others ban them completely. Some governments endorse lotteries and organize national and state lotteries. Still others regulate them. Regardless of the legality of lotteries, they are still considered gambling.