Car runs and stops suddenly

i have a 1994 chevy cavalair,some times it wont start on the first try .it drives good for afew days ,real good and some days it drives and stalls out, it starts bach up after afew try.some times if i stop for a train,shut it off it wont start on the first try,mobule,fuelfilter checks out ok.some times if i put it in drive it stalls out .mechanic cant find the problem.

Would it be related to rainy situation?