A lottery is a game of chance in which a small number of people are drawn to win prizes. It can be organized in a variety of ways. The main function of a lottery is to raise money for a public cause. Lotteries can also be used for commercial promotions. Lotteries have been around since…