Check the battery first and the alternator brushes second. Alternator brushes can wear to the point that they will charge sometimes, but not always. (A less-than-appropriate mechanic would charge for a full rebuild rather than just changing the brushes. Seen it happen to unsuspecting Audi owners.)