The only relevant thing here is that one aim results multiple projectiles at target area; this makes aircraft gunnery similar to the shotgun case.
gripen, shotgun pellets spread in a pre-determined pattern. They are not a result of individual dispersion due to involuntary forces - they are of design. When someone fires 100 rounds from a gun, he may observe the end-result of a dispersed pattern that
resembles a shotgun pellet pattern. But that's all it is - it is resemblance.
Let's assume you hold a shotgun that fires (unrealistic, but just for experimental argument) a 100-shot filled slug that boasts a dispersion pattern of 5m in diameter when reaching 100yards. You aim it against me and fire the trigger from 100 yards and as long as I am inside that 5m diameter pattern, the probability that you will hit me is 100%. But this probability applies to the whole "group" of pellets bursting out from a single slug. The probability of an individual pellet hitting me is low. It's simply that they are so numerous and simultaneous, that only as a whole group the hit probability reaches 100%.
Then, let's assume you carry a handgun that holds 100 rounds, and when fired 100 times consecutively the end pattern resembles the same 5m diameter pattern of the previous shotgun. Now, you aim that handgun at me and take a
single shot. Would the probability of hitting me be as high as the shotgun mentioned above?
That's why the shotgun analogy does not apply.
When one compares an aircraft gun to a shot gun, one assumes the
probability of a single instance of shot fired connecting to the target will be as high as the
probability the overall pattern emerged from an entire group of bullets fired over a time will be the same - this is entirely false.
Dispersion increases hit chance only with sufficient amount of bullets are fired to create a certain pattern. Because using so much ammunition to achieve a hit is deemed largely inefficient the history of aircraft guns ultimately abandoned the shotgun approach.
Therefore, when the environment is controlled so it becomes more difficult for people to make up for the consequences of their inefficiency (ie. no means to balance and manage the amount of bullets you view as 'expendable' = no ammo counter), the very practice of firing long bursts to spew enough rounds to create a pattern dense enough to achieve a hit will start to dwindle.
Thus, even if people do attempt long-range gunnery they will fire at considerably shorter bursts than they used to - which, negates the entire analogy of the shotgun, because people don't fire that many rounds anymore.