When the check engine light comes on, you can always take it to Advance Auto Parts (maybe so other places as well, I'm not sure). They'll check it out for free and give you a printout of the possible reason the light might be on. Also, check all your fluids and make sure that after you get gas, the gas cap is screwed on properly. Those could also cause the light to come on at seemingly random times.