If it was after sitting it sounds like a pinched nerve or vascular issue. Either way, regular exercise will help keep trouble away. Yoga, swimming, walking, especially with some short sprints intermittently, self-defense, Pilates, weight lifting, throwing a basketball, rowing machine, so many different things to choose from. Variety is better than doing the same thing all the time.