Since Gambling is by luck, there is not much of a difference if you know maths or not.
Maths is involved in gambling up to some extent because it plays its role in distribution of cards and in the middle of the game in different turns. However luck is the major thing which is involved in gambling besides which contributors are also present in which maths, experience and smart work also contributes to increase the chances of your winning.
I don't think maths will help us in winning the gambling if that is possible then most of the mathematics experts and professors will become millionaires by continuously winning in the gambling so nothing can make win us in gambling other than luck.
I think it is depending on the type of gambling that we have played because in real card game I believe that mathematics can help solve the distribution of card on each player to assist one's judgment, but computer generated game will never be solve by mathematics since I think it was randomly generated by codes.
That's the point, you can win a lottery by solving algorithm if you are good enough in mathematics, but there is almost no chance that you can win in gambling using mathematics.