The basics of every religions is that a supreme creator gave origin to all the rest. Although minor gods possessing power to create also exist in some religions they wouldn't exist without a supreme creator that is above all. So God is associated with all the laws which rule the universe, what includes math, probability and everything else. God has nothing to do with the misuse of the elements of his creation, that are the addictions. But there are no problems in having a healthy gambling routine.
Because after all, God certainly knows what the person is doing but on the other hand, most of them don't realize that God knows and is watching. So in the case of praying while gambling it is still not a problem because after all, the gambler believes that his god will be involved but that doesn't mean that by praying the results will always be good, no. Because praying is just an effort from someone to get good results, even though the results are not always good but at least he has good faith in his god and it's not a problem.