Determine what portion of your discretionary income you're comfortable with spending on gambling. This will be your bankroll. Stick to this amount and resist the temptation to dip into other funds.