A lot of people go to the driving range with their whole bag and cycle through their clubs or they take a few clubs they are having trouble with so they can focus on those, Nothing is wrong with both methods but to get the most out of your range sessions you should start making a plan.
Golf is a long game people like Brooks Koepka feel the game is too long at 18 holes and it should be brought down to 14 or 15 holes. Some people agree with Koepka but ones you plan on playing 9 holes for the rest of your life, start buying the biggest bucket you can. during a round you can expect to swing your club between 60-100 times, it doesnt seem like that much but once you divide up your clubs on the range to hit a certain amount of balls with each club, the balls will go fast.
On the contrary, it is better to go to the range more often than once a week or just before you play. Consistency is key so the more often you go the better results you will have from practice. With that being said, make your range sessions count, work on what clubs your weak with. Work on shaping your shot or just hitting different target, dont got to the range and just hit the ball a millions times.
Before you start crushing balls into the range, determine your range session focus for the day. For instance, if you are working on driving, hit hybrids and 3 woods, not just your driver. Although everyone wants to hit driver off every tee, some holes are not meant for a driver on the tee shot. Most people will start by just bringing out their driver and aimlessly start hitting balls into the range. Use multiple clubs and build up to hitting the driver to accomplish your driving goals.
Practicing a round at the driving range is great practice to get your yardages on your clubs accurate but this also helps simulate how you would take shot after shot. When you are on the course, you hit your driver then your irons and maybe a wedge then you putt. You do not swing your 8 iron 10 times in a row on the course so why practice like that unless you are working on your overall swing and not worried about yardages.
Take your time when you are at the range, take your time between every shot. Similar to what was mentioned above but you dont have to follow your timing on the course exactly. Hit a ball on the range then take a breather focus on what you might need to work on or what you need to do to replicate the great shot you just made.