Maybe if you are playing a math based game then probably it can help you. Yet most of the gambling games are basically based on your luck or other skills like logical thinking. I think the author was trying to atleast relate it to math and did said that you will win using mathetical equation
Can you give an example of a math based game gambling? I have never seen such game so far, as what I have seen so far are just game with numbers such as dice, roulette and lottery but I think they are not math based games.