To prevent this, there is a random number generator, which must be checked by independent test laboratories. Only blackjack casinos that are in possession of a valid gambling license offer protection against fraud.