The VRF contract are part of edexa VRF setup which is used to create secure random numbers
- clone the repo
git clone "https://github.com/nishil-edx/VRF-contracts"
-
use remix/hardhat to deploy consumer contract . Dont forgot to use edexa testnet chain
-
use coordinator address in consumer constructor which deployed for edexa testnet
0x86d47638A8287F058190A2197f085EDCEdF984DA
-
you can make custom versions of consumer contracts but make sure it inherit IVRFConsumer interface
-
call RequestrandomNumbers() function with any random seed of your choice and total number of random needed . Note 100 is the max limit
-
wait for few seconds for the oracle to call back your contract, and use viewRandom() function to check the result the random numbers will be replace by each call