Lesson 9 : wich is the utility of modulo in the chainlink VRF #3033
-
Hello The request Part define all the parameter than we need to confirm than an user become a consumer for the Raffle. And the Chainlink VRF Fulfil part is to pick a random winner among players. To do that we use the modulo beetween the number of players in the array and the random number generate for the winner. And the result have to be different to 0 to avoid a panic error. I have a good understand ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@NinjaTurtles-cloud Great! It is all correct! I am not sure why are you doubting yourself. |
Beta Was this translation helpful? Give feedback.
@NinjaTurtles-cloud Great! It is all correct! I am not sure why are you doubting yourself.