Consider that I can "program" a six-sided die to a payout rate of...
0%, by designating that no sides win
16.67%, by designating that only a 6 wins
33.33%, by designating that a 5 or higher wins
50.00%, by designating that a 4 or higher wins
66.67%, by designating that a 3 or higher wins
83.33%, by designating that a 2 or higher wins
100%, by designating that all sides win
Does that mean I've reduced the randomness of the die by deciding which sides I'll count as a win?
No. And yet I can mathematically show that the overall win rate will tend toward the number I chose over large numbers of trials.
Real games have many more internal states than just the six faces of a die, so the percentages can be tuned to much finer increments. But the core idea remains: given a source of randomness that can put the system into each one of these states with some known probability, we can compute the overall probability of winning (or the expected value paid to the player on average) by summing over the probability of each winning state (multiplied by its payout value).
The trick here is that the win rate is an average of a large population of samples. We can know a great deal about the overall behaviour of a stochastic system in the long term, when all the antics of the RNG are smeared together over millions of runs, even if we can say nothing about how the next roll of the die will fall.
Of course, the exact degree of unpredictability depends on the quality of our source of randomness. But even with an RNG source as pure as radioactive decay, we can still reason precisely about the long-term rates of particular occurrences, despite the randomness of each sequential outcome.
It's sometimes misunderstood that this means probability itself has some kind of memory or agency. That if a coin comes up tails "too many" times, Lady Luck will notice and start tipping the scales in favour of heads in order to balance it out and hit her 50% target. This is known as the Gambler's Fallacy. If this were true, then it really would make things "less random". If we'd observed a number of tails flips in the past, we could use that to make better predictions that the next flip might come up heads.
But that's not what happens. It's not unusual, for instance, for difference between the number of observations of some event and its expected number of occurrences according to the probability to actually grow over time, rather than shrink back to zero. So how do the overall rates still approach the theoretical calculations anyway, even if one event doesn't "catch up"? It's the growth of the denominator that does it:
9 heads out of 20 flips is 1 behind what we'd expect, for a 10% error.
95 heads out of 200 is 5 behind what we'd expect (5x more), for only a 5% error (half as much)
975 heads out of 2000 is 25 behind what we'd expect (5x more again), for only a 2.5% error (half again)
This is how we can get more and more confident about the range of the overall results we expect to see over an interval as we increase the number of trials, even without any ability to predict the result of a particular trial.