There is generally legislation requiring that the odds in gaming devices are statistically random, to prevent manufacturers from making some high-payoff results impossible.
Under common law, particularly English Law (English unjust enrichment), a gambling contract may not give a casino bona fide purchaser status, permitting the recovery of stolen funds in some situations.