Greetings.
I have a situation when my 1st level ranger (who, at this point of his career, doesn't have Precise Shot feat yet) comes across a melee of two humans.
Both of those humans are enemies of that ranger (long story) but also both are unaware of the ranger's presence at the scene and his exact position. Ranger's position is on side of the melee so neither of those two humans is positioned directly between the ranger and another target to provide an obvious cover.
As it was said, both humans are involved into melee with each other.
Ranger shoots into that melee. It doesn't matter for the ranger which exact target he hits, as long as he hits somebody. AC for both targets are somewhat different.
What sort of penalty he'd have and how you'd determine which target he hits?
I'm interested in both RAW and RAI interpretations.