RNGs are literally what it says on the tin: they randomly generate numbers in the same way rolling a pair of dice randomly generates numbers. This technology is over 30 years old and the best casinos and games providers have theirs checked by independent testing labs, thus ensuring it is truly random and fair. Of course, because RNGs do work randomly, it can sometimes mean that you lose often, but that is not the game being rigged.