I get these alot at night too. Drinking lots of water does actually help. Also, eat some bananas and make sure to stretch your legs out. I try to remember to stretch them at night in bed before I fall asleep. You could also go get a massage. That helped me alot with my back pain.