it sounds to me like the carbon brushes that ride on the slip rings inside the alternator may be just about worn out. When that happens one minute the alternator is working fine then the next not at all then the next it's working fine. This can happen for quite a while until the brushes are completely gone.