An vs A generally follows whether the spoken pronunciation of the word starts with a vowel or a consonant rather than the actual letter. "R" sounds like "are", a vowel, and "D" sounds like "dee", a consonant.