What is Chainlink VRF?

Chainlink is the most widely used and secure way to power universally connected smart contracts. With Chainlink, developers can connect any blockchain with high-quality data sources from other blockchains as well as real-world data.

Untitled

Managed by a global, decentralized community of hundreds of thousands of people, Chainlink is introducing a fairer model for contracts. Its network currently secures billions of dollars in value for smart contracts across the decentralized finance (DeFi), insurance and gaming ecosystems, among others.

Chainlink is trusted by hundreds of organizations to deliver definitive truth via secure, reliable data feeds. To learn more, visit chain.link, subscribe to the Chainlink newsletter, and follow @chainlink on Twitter.

Chainlink VRF (Verifiable Random Function) is a provably-fair and verifiable source of randomness designed for smart contracts. Smart contract developers can use Chainlink VRF as a tamper-proof random number generator to build reliable smart contracts for any applications which rely on unpredictable outcomes. https://chain.link/solutions/chainlink-vrf

How does it work?

When a Luchador NFT is purchased with ETH using MetaMask, our smart contract uses the Uniswap V2 Router to convert the user’s ETH to the required fee to consume VRF in LINK.

Next, we request a random number from Chainlink VRF using the user’s LINK and mint a new Luchador NFT. Before you can tell your friends you’ve found the next big thing, Chainlink will call back our smart contract with a random number, and that number is assigned to your Luchador NFT :

Untitled

"The Cult of Randomness”

Just as the lottery was a key part of the Athenian democracy, we believe that chance is the fairest way to distribute value. For that reason, we don't only use VRF for minting, we push the cult of randomness further by using chainlink VRF all game mechanics :

VRF is the best tool as a tamper-proof random number generator to build reliable smart contracts for any applications which rely on unpredictable outcomes.