Has anyone ever tried to operate gambling and lottery services within games?

What do you think are the main challenges and weaknesses of such services? If we launched lottery and gambling activities that are synchronized with the real world, would you be willing to spend money on them? What aspects of this concept concern you the most?

There have been various versions over time. Often the issue is getting enough people to buy in for the prize to be worth it