How do I determine if its the gauge?

What could cause the gauge to only go haywire on the highway and not around town?