Parents need to keep gambling away from their children until they grow up, after that they can determine their attitude when they are able to control their emotions and also make their own money.
I see your point it should be done the right way, keeping your gambling participation away from your kids is also keeping them out from any awareness on gambling while they are still at their young age, it's safe to avoid them getting any interest though there's no assurance that you can completely prevent them as growing up there's chance that they will cross the same path when someone else introduce this venue and give them ideas how things works around.
But, in terms of influencing your kids, that's very important not to allow them to learn things especially with their young minds they will think that's okay when they see you gambling and if they notice that you are enjoying.
Some of the things that makes children grow up with wrong knowledge is because their parents kept away information that they needed to know while growing up because they are afraid that if this children have an idea about what they kept away from them that they may start doing those things without their parents awareness but the best way to make a child stay away from a bad habit is to teach the child the basic necessity they need to know and the consequences that surrounds it If the choose to get involved because when you do that as a parent, you have already given the child the knowledge of the dangers involved so even if they are introduced to those things by others outside it will be difficult for them to take part in it.
Not letting our children know that we are gamblers doesn't mean we should keep them away from knowing about the repercussions if they choose to gamble.