This question has been asked previously by someone else but the answers weren't quite sufficient.
I want to write a simple contract that will yield an immutable 'random' number after a period of time.
My thought is to write it with reference to the hash of a future block of some chain. So contract will only complete if block height N is available. If the block is available, the contract will use the bits of the specified block hash to return the outcome of the dice roll.
I'm solidity noob, so wondering if this is a worked example by now...