Start up repo for hands on workshop for Ethereum.
OS - Mac OSX/Linux ideal
- Install Nodejs - NodeJS - Version 8
- Install Truffle -
npm install -g truffle
- Install Ganache Ganache
- Clone this repository
- Goto repo location
npm install
truffle migrate
npm run dev
- Goto localhost:8081 and click on "Say Hello" button.
If you see, "Show me the Ether", you are good to go!
function random(uint256 upper) public returns (uint256) {
_seed = uint256(sha3(sha3(block.blockhash(block.number), _seed), now));
return _seed % upper;
}