Every slot machine, video poker machine, keno machine et al in Vegas (and there are hundreds of models of these things, made by several manufacturers) is required to have its source code submitted to the State of Nevads gaming board before any of these things sees the neon of a gaming floor (I was going to say "the light of day", but anybody who's been in a casino would know what an oxymoron that would be...). The source code is inspected by the board (!), and periodically verified that the inspected code is what is actually in the machines. This is done to insure that the machines don't cheat, and that their randomizing algorithms are indeed statistically random.
None of the myriad manufacturers of the machines complains that thier "trade secrets would be compromised", or any other such tommyrot. The just do it, or they don't sell machines. And AFAIK, no trade secrets or proprietary algorithms have been compromised by the Nevada Gaming Commission in the decades that this has been the law there.
Which, I suppose, just goes to show you where our values lie: It's more important to protect a casino megacorporation's money than to protect the Constitution.
(And that surprises you how?)