This answers all your question about odds and hack on the system to win in lottery or gambling.
A man names Stefan Mandel, a mathematical genius cracked the code to win tho lottery. He computed all possible equations and finaly got some algorithms that made him won not just twice but 12 times.
Since the government becomes aware of his motives although it is legal in nature, they change the lottery rules and law for Mandel prevent winning. They even ban computer printing tickets for him to have hindrance. He even go to other countries to test his equations and even got some investors to buy tickets for him to succeed on his winning combination. Unluckily, he got prisoned on the last country and never did the act again.
If you wanted to crack the code like him, you shoud:
1. Be a mathematical genius
2. Crack the new algorithms for the new system of lottery since its computerized now
I guess being lucky comes to his genius mind in the first place.
Source Link:
https://youtu.be/eOX7acjkGv0He is a real genius, people invents, think and create something out of necessity, it's hard to do that, but unfortunately, he do not have enough money to do this, and he asks people to fund him and that's where the real problems come.
I'm sure lotto operator and government who runs a network of lottery knows about this story and they have a system set up to avoid this, but we cannot avoid people coming in to try to cheat the system.