Gambling habits doesn't really pass from the gene of parents to children, most children are easily influenced by the hobbies of their parents. Normally most male just have interest in gambling because of the money it brings .
The medical professional had already confirmed this with their study. So how can we refute their findings? Ever heard the phrase, "runs in their blood"? Well, we heard this when one child did the same thing that the father did. So basically if the father is a gambler there is a tendency for his child to be a gambler too even though this kid never saw his father in an actual gambling session.
It's not that common to follow in your father's footsteps. Out of my friends literally none is in the same trade as their fathers. They did not finish the same schools, they are interested in different subjects and work in different areas. Like I have 3 friends whose fathers used to be construction workers. 1 was a designer, one was an architect and one was a builder and their sons are in IT, and one works in the TSA.
When it comes to habits, I know a number of people whose parents smoked and they don't smoke.
Whether you do what your parents did is a random thing that depends on your character, life choices, the bond with your parents and many more.