is the rear end of a 99 the same a a 02
Look on the drivers door frame "VIN" sticker for both vehicles to see if they have the same "code". There are 3 different axles offered for those years and you need to make sure you have the same gear ratio, unless you are going to swap "just gears" or the whole center carrier (which might require axles swap as well if the splines are different then the carrier).
Search Ford Ranger Questions
Ford Ranger Experts