Here are all the different choices in driveshafts for a 1999 ranger. Looks like you need to be more picky as to what engine it has when you get one. They will take the one back won't they?
Regular Cab, 7' box (118" WB), 4x2, MT, 2.5L
Super Cab (126" WB), 4x2, MT
Regular Cab, 6' box (112" WB), 4x2, MT, 2.5L
Regular Cab, 7' box (118" WB), 4x2, AT, 2.5L
Regular Cab, 6' box (112" WB), 4x2, AT, 4.0L
Regular Cab, 6' box (112" WB), 4x2, MT, 3.0L
Regular Cab, 6' box (112" WB), 4x2, MT, 4.0L
Regular Cab, 7' box (118" WB), 4x2, AT, 3.0L
Regular Cab, 7' box (118" WB), 4x2, AT, 4.0L
Regular Cab, 7' box (118" WB), 4x2, MT, 3.0L
Regular Cab, 7' box (118" WB), 4x2, MT, 4.0L
Super Cab (126" WB), 4x2, AT
Regular Cab, 6' box (112" WB), 4x2, AT, 2.5L, from 1/99
Regular Cab, 6' box (112" WB), 4x2, AT, 2.5L, thru 12/98
Regular Cab, 7' box (118" WB), 4x4
Super Cab (126" WB), 4x4
Regular Cab, 6' box (112" WB), 4x4
Regular Cab, 6' box (112" WB), 4x2, AT, 3.0L, coil spring suspension
Regular Cab, 6' box (112" WB), 4x2, AT, 3.0L, torsion bar suspension