It takes deliberate coding to tell the machine to randomly switch Rs to Ds.
Exactly. That's not 'buggy behavior' or a 'glitch.' It's a feature.