Why would my gas heater have blow back, but not every time?
As Harper says, I think you have an atmospheric problem.  Some times just lengthening the vent line 3 or 4 feet will fix this.  Sometimes you need a power booster to overcome the down draft. P.