Probabilistic Smart Contracts:
Secure Randomness on the Blockchain
We have implemented the RBGC in Solidity. The code is available here.
How to test it
You can run the code on your local machine using geth or
follow this tutorial for
testing it on the Ropsten Ethereum test network.