Documentation
Search
K

Get Random Element

Get Random Element action allows you to pick a random element from the provided list using Chainlink VRF (Verifiable Random Function) - a verifiable source of randomness for smart contracts.
This can be useful when you need to assign random traits to your NFTs, pick a lottery winner, or create a transparent user experience for your applications.
To set up the action, you will need to provide:
  • Elements - a list of options to choose from. Can have repetitive values (to adjust probabilities) and must be separated with 'OR' (e.g. Red OR Green OR Blue)
Outputs:
When "Get Random Element" is selected, you can use its outputs in the next steps as variables.
  • Random element - random element picked by Chainlink VRF
  • Elements - a list of provided options
Examples:
Learn more:
Chainlink VRF - a verifiable source of randomness for smart contracts (https://chain.link/vrf)
Chainlink VRF Smart Contract of Thentic is implemented on BNB Mainnet (https://bscscan.com/address/0xa22980B2C61FA12E71Fe33e91b03D1cFbDbB97B6)