Chosen Solution
my cursor suddenly started bouncing around all over. in all apps and with mouse or trackpad. is settles for brief periods but otherwise is crazy.
Unplug the track pad and air out the connector, If it still acts up replace the track pad
This action can also be caused by a swollen battery. Open it up and check that battery. Here’s how: MacBook Pro 15" Retina Display Early 2013 Battery Replacement
You have to replace the whole top case.