IF IF you have factory style wiring, there are several things that can cause this
Read this excellent article on the how and why of these problems:
(Whether or not you perform this bypass, the article and simplified diagram down the page explains some of the problems)
http://www.madelectrical.com/electricaltech/amp-gauges.shtml
Some things that can cause are:
inded flakey old style (mechanical relay) regulator
bad connection in the field circuit, or brushes barely making contact/ greasy/ worn out
Problems within the alternator itself
Bad connections in the bulkhead connector
Loose/ corroded connections at the ammeter
Same thing, other connectors or fuse panel in the system
AND in rare cases (It happens!!!) the factory "welded splice" can fail. Refer to the MAD article. This is a factory welded splice in the black ammeter wire, taped up in the under-dash harness.