RTP is the theoretical average amount that a game will pay out when looking at a large sample size. The game developer looks at every possible outcome the random number generator can produce and see how much the game will pay back to the players.