I don't fully agree with this and in fact I believe that RNG can be used to enhance the experience. But as with most things when it comes to RPG-making, it depends on the rest of the game. So, how can RNG be a good thing?
First, RNG helps give the game more variance, which in turn makes it more fun. Having your attack miss at a crucial moment when it should have hit adds a feeling of excitement, because suddenly you're in a bad situation. The same goes for when you're about to go down, but then suddenly you land a miracle critical hit to save your sorry bum.
Second, it keeps the player on their toes. When you know for sure your attack is going to hit, there's nothing more to think about when making your move. When there is a chance to miss (especially if it's a fair chance), the player might want to rethink their move and maybe come up with an alternative plan. In addition, when RNG does goes wrong, the player is forced to adapt to the new situation, change plans or strategy. A bad player will blame their loss on the game, while a good player will make the best of the situation and deals with it.
In my opinion RNG is bad (in the average RPG Maker game setting) when:
-When the outcome of RNG is too big. So, basically if a good RNG roll can easily win a battle out of nowhere, or a bad RNG roll can suddenly lose a battle out of nowhere. Instant kill spells with a low chance to hit are an example of this.
-Too much reliance on RNG. When there is so much RNG involved that the player is unable to form any kind of plan or strategy in battle because every turn is solely decided by RNG.
-No other options but to heavily rely on RNG. Goes with the point made above. Having a skill that is a big RNG roll can be fine (as long as it avoids the first point made), the problem is when every skill functions like that, leaving the player with no choice.
In my opinion how to do RNG right:
-Keep variance in check.
-Keep RNG as a secondary ingredient to help spice up the gameplay, rather than a main component.
-Give the player choice over the amount of RNG they are willing to deal with (like, having weaker weapons with higher hit chance, or possibly skills/equipment that can boost accuracy).
The amount of RNG you should have in your game also heavily depends on the kind of game you're making. Basically, the easier your game is, the more you can get away with random stuff happening in it. While the more difficult your game is, the less you'd probably want of it to avoid the player getting RNG screwed.