I'm somewhere between "a little randomness" and "certainty".
I feel there is some very small amount of room for randomness in numbers in an RPG (for example, a 5-10% Variance in damage dealt), because it makes things feel a bit more natural when your attack deals 208 damage one hit and 224 damage the next, rather than being a monotonous run of 210 damage each time you press Attack.
Beyond this slight numerical variance, though, I feel that
the result of actions should be deterministic unless you, as the designer, can clearly elucidate a strong reason that your game is better for having that randomness.
That means that I would generally eliminate Hit Rates, Evade Rates, Critical Hits, State Application Rates (below 100%), Random Numbers of Hits, and all other major forms of RNG from your game. Either get rid of these mechanics altogether, or make them strictly "opt-in" (for example, make a few pieces of optional armor that have a chance to block attacks). Even the enemy's random selection of actions or targets are best thrown out, if you can come up with an interesting and suitable alternative (for random selection of targets, "Aggro Systems" are often a great alternative).
You often see video games try to emulate the exciting dice rolling mechanics of Pen & Paper RPGs like
Dungeons and Dragons, and you've probably noticed that most of these games
suck. Why is it fun in tabletop D&D, but terrible in video-game D&D? It's because Pen & Paper RPGs are all about roleplaying and improvisation - even a terrible outcome is a roleplaying opportunity and a potential story hook. Even a terribly unlucky character death can enrich a tabletop campaign's play experience. The players and the DM can work around it on the fly. Videogame RPGs are more often about overcoming challenges and progression (in a rich setting, with a meaningful story) - a "Miss" in combat just makes the combat take longer, rather than offering a roleplay opportunity, and a series of bad beats in combat usually means you get to stare at the Game Over screen and do your last 20 minutes of gameplay over.
Random drops of loot are an exception to this rule, because research shows that human (and animal) brains are hardwired to enjoy being surprised by the best rewards at random intervals (rather than receiving the same things each time or being treated to the best rewards at fixed intervals).
Of course, there
are a lot of different reasons that can justify including randomness in the result of actions in a game. Here are a few examples of games where I feel randomness is done right. Since my explanations of each are rather long, I'll "spoiler" it to keep the post cleaner:
Spoiler: Examples of Randomness Done Right
- Chaos Reborn is one of the most interesting examples. It's a competitive tactics game where every attack by a unit will either kill the target, or do nothing. The chance of scoring a kill is determined by the units' relative power. This is kind of cool because it forces the player to think about multiple different scenarios a few turns ahead - what will I do if this attack scores a kill? What will I do if it doesn't, and now that unit is in range for an enemy attack? How many reinforcements do I need? It's also a nice dynamic in that very few games are "dead game walking" for either player - you can earn yourself advantages, but as long as you have a way to get a clear shot at the enemy's Summoner, it's never hopeless. Chaos Reborn actually includes a "Logic" mode where the chances of kills are instead converted to deterministic HP reductions on enemy units. This mode is more "fair", but it's actually a slower, slightly less interesting way to play where you grind away at the enemy trying to get small advantages.
- Tactics Arena Online is another competitive tactics game, where several units have a chance to "Block" physical attacks. The chance to Block is adjusted by which direction (front, side, back) the unit is being attacked from, and (intelligently) the designers make long streaks of lucky/unlucky results impossible by adjusting a unit's Block chance down/up every time they succeed/fail a block attempt. Again, this mechanic makes players think about a gamut of different situations instead of a predictable path, and it can even be cleverly manipulated by players to try to have a weak unit's attack attempt block, just to follow up with a strong unit (now that the block chance has been reduced to zero).
- Spectromancer is a card game where each player summons creatures into up to six slots to do battle. Most classes are deterministic, but a few are all about controlling randomness. A few cards from that game include Doom Bolt (deal 25 damage to a random enemy battler), Army of Rats (deal 12 damage to all enemy battlers, and 12 damage to a random ally), Rescue Operation (move any creature to a random empty slot on its owner's side and heal it 5 life), and Insanian King (each turn, summon an Insanian Soldier into a random empty slot on your side). What's neat about all of these cards is it lets you (and possibly your opponent) try to manipulate the board or game situation in ways that will make these cards useful (or useless). Doom Bolt is best used when the opponent has very few creatures - if there's only one, you know which one it will hit! Army of Rats is great when you've created a board state where all of your creatures have high health. Rescue Operation might be best when you have just one or two empty slots that can be chosen randomly - or when your opponent has a lot of empty slots opposite yours (meaning there's a good chance this could allow your creature a direct attack). Insanian King is best when you're looking for board advantage in general and want to fill your slots quickly, but is worst when your opponent plays very high-value creatures that might get opposed by a weak Insanian Soldier.
- My own upcoming game timeblazer eschews most random elements like Misses, Evades, and random State Application, but it does include Critical Hits, because this mechanic is something that is very core to timeblazer's battle system. Crit chance is heavily influenced by a stat "Dexterity" that you can invest in if you want to, and if you just barely miss scoring a Crit with an attack, you get to play a microgame to turn that action into a Crit. Some skills and equips have additional "Crit Effects" that trigger when you land a Critical Hit. This allows me to create states that might be too powerful if applied every time a skill is used, but also allows the player some modicum of control over its chance to apply, and also provides an interesting "opt in" between skills with consistent effects and ones that require a Crit to unlock their full power. I don't think I've achieved the best randomness design possible, but I do think it adds more than it takes away here.
Finally, it's worth mentioning that all of the above is mainly centered around Randomness of Output, rather than Randomness of Input. Like
@Touchfuzzy mentioned above, Randomness of Input is actually the more interesting and fun type of randomness. While few RPGs provide input randomness beyond randomizing the troops that you face in each RE or randomizing dungeon layouts (which is kind of neat), you can look to other genres for a good sense of Input randomness:
- The "4X" subgenre of strategy games usually semi-randomize their maps at the beginning of each game, meaning that the most important territory to fight for, the accessibility to different resources, etc., will be different in each game. This is a fantastic way to ensure that every game feels different even among players who have mastered the mechanics and tactics. The Civilization series provides a masterclass on this.
- Mascot Fighting Games such as Super Smash Bros. randomize the items that drop into any given fight, changing how the fight will play out for the next several moments. Each item does something very predictable when used, but players need to improvise and recalibrate their tactics based on what items appear.
- Board games such as Puerto Rico and Fields of Arle randomize (from a larger pool) the set of buildings which appear in any one game. Players know upfront everything that will be available this game, and there's no randomness in the game once the first turn begins. But this slight bit of randomness in the input can dramatically distort players' strategies, and ensures that every game offers a unique puzzle to compete in with your opponents.