Wizard Financial Integrates Chainlink VRF To Help Randomize Character Minting and Battle Outcomes!

4 min readNov 9, 2022


We’re excited to announce that Wizard Financial — a GameFi project with multiple P2E games and a unique NFT ecosystem — has integrated Chainlink Verifiable Random Function (VRF) on BNB Chain mainnet. By integrating the industry-leading decentralized oracle network, we now have access to a tamper-proof and auditable source of randomness.

Ultimately this creates a more exciting and transparent user experience, as players can be assured that the minting of Heroes characters and the outcomes of their battles with Demon Lords are both based on provably fair randomization.

Heroes VS Demon Lords is an on-chain P2E game where the Heroes and Demons fight for life on Earth. You can mint Heroes and fight battles with Demon Lords. The game is a fun way to earn because you get WIZARD tokens as a reward for winning in-game battles. You can discuss your strategies and share your gaming experiences on Wizard Financial’s Official Telegram Group.

In order to fairly randomize both the minting of Heroes Characters and the outcomes of their battles with Demon Lords, we need access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions derived from blockchain data like block hashes can be exploited by miners/validators, while off-chain RNG solutions derived from off-chain APIs are opaque and don’t provide users with definitive proof about the integrity of the process.

After reviewing various solutions, we selected Chainlink VRF because it’s based on cutting-edge academic research, supported by a time-tested oracle network, and secured through the generation and on-chain verification of cryptographic proofs that prove the integrity of each random number supplied to smart contracts.

Chainlink VRF works by combining block data that is still unknown when the request is made with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. Wizard Financial’s “Heroes vs. Demon Lords” smart contract will only accept the random number input if it has a valid cryptographic proof, and the cryptographic proof can only be generated if the VRF process is tamper-proof. This provides our users with automated and verifiable assurances directly on-chain that the minting of Heroes characters and the calculation of outcomes of battles with Demon Lords are provably fair and were not tampered with by the oracle, outside entities, or the Wizard Financial team.

Wizard Financial’s randomization process works as follows:.

  1. Generate a random seed based on the user’s wallet address.
  2. Use the seed to retrieve a random number from Chainlink VRF.
  3. Take mod of the generated random number and downscale it to a size that matches our array size and indexing.
  4. Match a character with each index.
  5. Calculate success chance based on Heroes stats and enemy’s winning percentage.
  6. Determine the outcome with the following conditions.
  • If the sum of random mod + success chance is greater than the threshold number, then there is a win
  • If the sum of random mod + success chance is less than the threshold number, then there is a loss.

“The Wizard Financial team selected Chainlink VRF because it is a top-notch solution for verified random number generation on the blockchain. It also gives our players stronger assurances that all in-game outcomes are based on a provably fair source of randomness.”–Derek, Lead Developer, Wizard Financial

About Chainlink

Chainlink is the industry-standard Web3 services platform that has enabled trillions of dollars in transaction volume across DeFi, insurance, gaming, NFTs, and other major industries. As the leading decentralized oracle network, Chainlink enables developers to build feature-rich Web3 applications with seamless access to real-world data and off-chain computation across any blockchain and provides global enterprises with a universal gateway to all blockchains.

Learn more about Chainlink by visiting chain.link or reading the developer documentation at docs.chain.link. To discuss an integration, reach out to an expert.

About Wizard Financial

Wizard Financial is a GameFi project with multiple P2E games all providing utility to our native token WIZARD. Wizard Financial’s whole ecosystem is built to provide utility to its native token.

Wizard Financial has its own NFT ecosystem which includes different types of NFT staking and a fully decentralized NFT Marketplace as well as its own decentralized & automated launchpad.

Learn more about Wizard Financial by clicking Here.




First-of-its-kind magical fantasy token on Binance Smart Chain @ wizard.financial