In this smart conract tutorial we use Chainlink VRF to improve the lottery smart contract that we created in Part I by replacing the pseudo-random number generator code with a true, verifiable random number.

Chainlink is a decentralized blockchain oracle network built on Ethereum.

Part 1: Smart Contract Tutorial: Create a lottery smart contract in Solidity 

Part 3: Web3 Tutorial Project | Build a web3js dApp with a Solidity lottery smart contract on Ethereum 

Source code for this tutorial: 

Chainlink docs: 

Rinkeby testnet faucet: 

LINK faucet: (select Rinkeby testnet): 


#smartcontract #sonidity #chainlink 

Lottery Smart Contract Tutorial - Get a verifiable random number with Chainlink VRF
1.60 GEEK