I am very interested in how you were getting hit at 28 blocks. I have left it running for 30 minutes and have not been hit once at a range of about 18 blocks. It consistenty hits in front of me.
The issue for me has not been random variation, I understand that is intentional. They just consistently target in front of the player. This is most obvious in the “long_range_aiming” video I uploaded. Where the skeleton consistently hits 1 block in front of me, but upon moving backwards, it is shown to be able to target the location I was just at, but not when I am there.
Looked at this again, it is affected by difficulty. I was able to be hit from a further distance on Easy and Normal. I think this is due to the random variance being greater the lower the difficulty, so some shots that are supposed to be off target go further and hit the player.