My 2000 5.9L was having a rough time at idle when cold. It would start OK but 10-15 seconds later, it would start surging and idling rough. Once warmed up, the surging would stop. I changed the Throttle Position Sensor (Auto Zone for $35
). That and a cleaning of the air intake and the surging went away.