Randomness on Blockchain

Last several months we’ve seen so many security problems due to randomness.

It’s hard to get a fair random number on blockchain for it’s opensource and transparent.

Any methods to deal with this issue?

How about this? https://github.com/dappub/fairdicegame
Widely used by gambling Dapps on EOS.