It probably has something to do with your heart. Some heart issues that can cause random pain include pericardtitis, a sharp, sudden stabbing pain that becomes worse over time. A heart attack can have similar symptoms.