XCOM 2 had a few interesting implementation details. You can actually see it all in the source code provided in their modding tools, which is a really awesome thing IMO, to be able to see a huge chunk of XCOM 2's actual code.
On the two lower difficulties (equivalent to "easy" and "normal") there is a relatively minor, invisible bonus to your next shot's chance to hit if you have a chain of misses. On the "hard" difficulty, this correction factor actually increases to compensate for several other changes that make the game much less forgiving of tactical errors. Then when you get to the "legendary" difficulty, the bonus goes away entirely and you're fighting a completely fair RNG along with all of its streakiness. I think this puts an interesting perspective on how "RNG fairness" works.
The story behind TFTD's difficultly (you may have heard this one) is that people complained that XCOM was too easy, even on the hardest difficulty. But this was due to a bug: save/load did not persist the difficulty level properly, so most people played one or two missions on ultra-hard and the rest on easy, without ever realising. So when the developers turned up the difficulty and fixed the bug, suddenly the sequel was incredibly hard.
Many games do, actually, and it's an interesting topic in of itself. In case someone wants some further reading:
- http://www.redblobgames.com/articles/probability/damage-roll...
- http://sinisterdesign.net/unpredictability-and-control-in-tu...
- http://www.gamasutra.com/blogs/RogerHgensen/20101123/88511/C...
- http://techland.time.com/2012/10/12/why-xcoms-random-results...
- http://forum.zdoom.org/viewtopic.php?t=50643
Another funny anecdote is that Wesnoth had to include a FAQ entry about the game being unfair because it relies too much on "luck": http://wiki.wesnoth.org/FAQ#There.27s_too_much_luck_in_this_...