Ok so I'm looking to buy a new 9mm as a range or occasional carry gun.
Range use / carry (concealment ability) are nearly diametrically opposed requirements. If you go for a short barreled gun for carry, then that reduces the functionality at the range. Likewise, the longer barrel of a true range gun makes it difficult to carry and conceal.
There are two range 9mm's that are standouts above the rest: from the
CZ Custom Shop - CZ 75 Shadow, or Target; and from Springfield Armory - the
XDm 5.25 Comp Series. Both guns are built for range use, and the triggers can be readily tuned for competition. For carry, neither would be easy to conceal as they're big and heavy.
Range + carry? Hmmmm....well, you certainly can shoot any carry gun at the range, and as long as you don't care about being competitive with other people/guns that are built for range use, you should be happy.
How do you plan on carrying the gun? My wife has an FNX-9 and, like any gun with a 4-inch barrel, it is servicable and even semi-competitive at the range, but it would be difficult to conceal mostly because of the double-stack width of the receiver coupled with hand grip length that gives 17 round capacity. That's the problem you're going to have with any 9mm with a full size grip.
In a near 4-inch barrel gun, the Glock 19, Springfield XDm Compact, CZ-75 Compact, CZ-P01, or the S&W M&P Compact would allow for carry/concealment and would work fairly well at the range.