1996 Ram 1500 5.9 4x4 surging?

I have 1997 5.9 ram and mine was doing the same thing....Turned out the throttle body needed to be taking apart and cleaned....It was just dirty....working great since and that was 40,000 miles ago