Inconsistent idling problem

Lots of possibilities but over the years my experience with wildly changing idle has been traced to erratic vacuum leaks like a bad PVC valve, rotten/split vacuum hose or maybe a leaking power brake booster diaphragm.

Just my 2c