Constipation

Hey I know this is random, but what can I do for constipation? My stomach hurts so bad and it’s been happening a lot I don’t know what to do anymore. I’m in pain as we speak..