I stick to a monthly budget. Let's say I alot 5% of my income to gambling. I just need to make sure that it will last me for the whole month so I won't need to take more money from my income. It takes discipline. And another thing, never try to chase your losses.