Algorithms for online gambling use random number generators (RNGs) to ensure the outcomes of games are random and unbiased, providing fair play. Online casinos licensed by MGA are required to have their RNGs regularly tested and certified by independent bodies.