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