Online casinos have Random Number Generators. Those are approved and vetted by third party companies to ensure that they are truly random and unable to be compromised by players. A test of an RNG will involve hundreds of millions of numbers tested on an ongoing basis to ensure a fair statistical sample. Online casinos frequently test their Random Number Generators using these hundreds of millions of trial runs and the Random Number Generators will be certified by the third party company. Players will usually be able to see this certification somewhere on the online casino website, or contact the casino directly to see the certification if they are not sure about the Random Number Generator.