There a variety of conditions that can cause chest pain
The first thing that comes to mind when you say random and sharp is some type of pleuritic chest pain. Meaning it likely is coming from the lining of the lungs. This is especially likely if it is associated with breathing. But, if it is pain that wont go away for >15 min, is squeezing in nature, please see your doctor asap.