The lottery is a popular way for governments to raise money. The prize can be a fixed amount of cash or goods. Usually the organizer takes on some risk, by promising that the prize fund will be a certain percentage of ticket sales.
Generally speaking, lottery games are regulated by state or provincial law. They may be legal in some jurisdictions, but not in others. For example, California is one of the few US states that does not allow its players to play Powerball. However, it does offer its own version of the game, Megaplier.
This is an interesting example of a government-run lottery that uses the same format as a commercial lottery. The prizes of this kind can range from a small cash prize to the total cost of all the tickets sold. In some cases, the prize amounts are adjusted for inflation.
The Green Card Lottery (DV) is a type of lottery that randomly selects immigrants for permanent residence in the United States. The DV lottery draws winners from many different countries around the world. However, immigrants from Mexico and China far outnumber those from other countries accumulated in the DV lottery.