When you are at the range, are you picking targets or just wacking away? I found that I'm much more consistent on the course when I practice like I'm playing a full 18. Sometimes I grab a scorecard and pretend I'm playing each hole. Driver, then long iron/hybrid and depending on the hole, mid iron and/or wedge. Rinse and repeat.
I also stopped hitting off the mats and started practicing on grass only. That's my practice routine, it makes it fun and I've definately seen an improvement in my scores. I also have been working on my short game a lot lately too.