In this tutorial we will learn how to build a smart contract in solidity that uses the chainlink vrf (Verifiable Random Function) as a source of random numbers to give more security to our dice game.
Two players will challenge each other by choosing even or odd, then the dice will be rolled and a winner will be chosen, taking the money bet by the other player to his wallet.
Technologies:
Solidity
hardhat
Chainlink VRF