Alternating pronouns in the English language is a concept to emphasize the "randomness" of the gender. [1]
[1] https://english.stackexchange.com/questions/279494/do-any-st...