You can do provably fair gambling by using cryptography to show the generation was not tampered with. It was common in bitcoin gambling sites that had no other way to prove they were (somewhat) legit.
While this may be cryptographically sound(I haven't looked into it), it's not a viable solution since it won't be trusted or understood by the majority of their target demographic.
https://en.wikipedia.org/wiki/Provably_fair
https://github.com/search?q=provably+fair