Irritation of nerves
Most commonly they are caused by nerve
Nerve irritation or pinching, can occur from lack of circulation which is what you get in your legs when you sit in one position too long for example. Diabets can affect circulation and nerves which can cause "pins and needles." you can never go wrong by getting a good clinical/doctor exam to detrmine your cause.