Surging is usually a carburetor issue, and usually by dirt in the fuel system, ( fuel-tank ,filter, fuel lines, could need a carburetor cleaning, or even an overhaul, but it would be helpful if you would post your machines info. so we know what we are dealing with ...see example
.... click to enlarge, there should be a similar label on the engine itself