Gambling is not for children and that is why you don't need to let them know that you are gambling or see you gambling to save them from giving it a trial at their age. There are somethings I don't do in the presence of children so that they don't emulate me because I know it is not nice for a child to copy one of my habits that is good to me but bad to some people.
Whoever have kids and wants to gamble should do that privately in his room or somewhere they cannot see you. It is good not to talk about gambling in their presence too but you can still educate them on gambling if you notice something strange about them.
If the children are still in school, I think it is better not to tell them about gambling and besides that I never think there are parents who deliberately tell their children about gambling even though the purpose is to tell them the bad impacts of gambling that can occur when they gamble, maybe most parents will hide their gambling activities if their parents like to gamble.
I agree with that, indeed when we already have children and still like to gamble, it is better to gamble in secret so that children do not see the gambling that is done, and the reason is quite clear that gambling is not suitable for children even if it is just a show. Keeping children away from gambling is something that must be done, although maybe they will get to know it themselves later, but the education from the beginning given by parents will determine them in the future.