August 2018
Intermediate to advanced
404 pages
11h 19m
English
pragma solidity^0.4.24;// Contract to generate random number// Uses timestamp and difficulty// Not recommendedcontract RNG { function generateRandom() view returns (uint) { return uint256(keccak256( abi.encodePacked(block.timestamp, block.difficulty) )); }}
Read now
Unlock full access