The next time you are at the range, make it a point to practice with a purpose. This can be accomplished in a very practical and easy manner. If you hit 60 balls, the average amount of balls in a medium bucket, hit 10 beginning with a pitching wedge (to develop proper tempo), 5 balls with a 6 iron, and 5 teed balls with a 3-wood. This process will develop good tempo and provide you an opportunity to warm up. With the next 40 balls, play golf. More specifically, if this practice is taking place before the round, 'play' the course you are about to actually play. For example:
Think of the hole on which you will begin your round. If it is a straight away par 4, 400 yards with no danger, then pull the appropriate club for the tee shot. Maybe it's a 3-wood or a driver. On the range, hit the shot that you would hit on the course. Then, depending on the result of the shot, decide what shot is appropriate for the next shot. Then, still on the range, hit that shot with the appropriate club. If you miss the green by a good distance, hit the pitch shot to the green. Once you're on the green (or within chipping distance), move on to the next hole and repeat the process. With 40 balls, you should be able to play about 10 holes, maybe more. You must use your pre-shot routine before every shot and have your fairway/green clearly mapped out on the range.
If you are practicing on a day that you will not be playing, only dedicate about 20 range balls to 'playing the course'. This will allow about 20 balls afterwards to work on any issues you may be fighting in your swing. This should never be done before a round because you do not want to be working on swing issues on the course, unless you are playing a round with the sole purpose of practicing.
This approach will help you practice with a practical purpose. You will see a direct positive impact on your game using this technique.