People often say lotteries are a scam, but they really don't know what they're talking about. Buying a lottery ticket can have exactly 2 outcomes, you either win or you lose. That's means there's a 50% chance of winning. With a bit of skill and practice, you can even increase those odds further.
The people who keep on denying these stats and numbers are obviously the ones that don't understand them. They're also the ones who have never won the lottery so they don't have the qualifications to speak on the topic.
Since lotteries pay out way more than 2x the cost, over the long term, you'll be earning insane amounts of money.