Here's a few thoughts, and a few things I would check.
1. Battery Connections (corrosion) and also to see if positive or neutral is loose.
2. Check the belt for proper tension (just incase its slipping, the alternator wouldn't be running at top efficiency)
3. Go to a local autozone, advance etc and have them test your battery/altenator (this is free).
4. Check the ground on your alternator (one nut that can vibrate loose overtime)
I had this same problem with my first ranger, it turned out to be a bare spot grounding out near the connector that's on the alternator. Everytime the battery light would come on, never drained my battery though.
Do you have dim headlights? Harder time starting? Does this occur when damp/humid, or is it just random? Do you ever have to be jumped?