The accuracy of a .22 rimfire rifle may depend on the ammo you use.
I have a batch of federal gold bulk that won't shoot well in any .22 rimfire.
and I have found that the Federal champion target, Winchester T22, and I.V.I. target shoot well in most .22s.
Try a variety of brands of ammo in you .22 rimfire. Pick and shoot the brand that is most accurte.
BTW: I carefully pulled the bullets on the Federal gold bulk and weighed the cases ( I inspected the inside of the cases for powder before I weighed them), I then ran the cases through a Cooey single shot and fired them.then weighed the fired cases. There was no measurable weight diference between the fired cases, but the unfired cases varied slightly in weight. This indicated that the ammount of priming compound was slightly different in each case. I also weighed the bullets that were pulled, and there seemed to be no measurable difference in the weight of the bullets or powder charge.
As an experiment I weighed 100 unfired cartridges of this ammo and separated them out into three piles, one pile wieghed more than the average weight, one pile weighed less, and one pile (the smallest) was bang on to the average weight.
There were several that were very light that were set aside in a forth pile.
When fired out of a Savage .22 rimfire, each pile of ammo gave a smaller group (about half the size) than the average group, also each pile of ammo shot to a differnent point of aim. The ammo that was light shot slightly lower and gave a small group as well.
My conclusion. The amount of priming compound in a .22 rimfire cartridge may have more to do with apparent accuracy than other factors.
And my other conclusion from shooting several lots of the same brand of .22 rimfire ammo, some lots shoot better than others out of the same gun.
I suspect I got a really bad lot of Federal gold Bulk, maybe the lot where the machine spinning the priming had trouble metering the priming compound.
Too bad I didn't think to chronograph these rounds and see if there was a velocity difference between the sorted piles.
BTW, the Savage .22 I used is capable of ten shot grups of 3/8 inch (one jagged hole) with winchester T22. I shot several groups with T22 before and after I tested the Federal bulk just to make sure it was really the ammo and not me or the gun.