Why do my muscles spasm randomly?

Why do my muscles spasm randomly? Overuse of a muscle, drying out, muscle strain or essentially holding a position for a drawn-out period can cause a…