Regular mild exercise. Intermittent strong exercise can give you cramps. And keep your legs warm, if your legs suddenly get cold they will cramp. And what the others said about salt and potassium.