Lotteries have been around for centuries, and the first one was established by King Francis I of France in 1539. The idea was to use the profits from lottery tickets to improve the state’s finances. The edict of Chateaurenard authorized the first French lottery, which was known as the Loterie Royale. However, the project was a disaster – tickets cost too much and the social classes opposed it. The lottery was eventually banned in France for over two centuries, but it was tolerated in some cases.