Taking a slice of a VRF RandomWord - still random? #2460
Replies: 2 comments 7 replies
-
Hmm...Good question. Well my thinking is...if the entire number is random, wouldn't the subset be random too since it would be hard to predict what these two numbers are if we don't know the entire random number? |
Beta Was this translation helpful? Give feedback.
-
@tmcdonough Like the hash functions that change the complete hash key by just changing a litter thing in it. Ex. giving space or adding a But randomness does not mean that the number/value will not come again, obviously if you choose from [1,2,3] array, and run it multiple times definitely the chances of returning the same number will be high. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you take a slice of the randomWord returned by VRF, is that also random? E.g. say vrf returns:
105409183525425523237923285454331214386340807945685310246717412709691342439136
If i grabbed the first 2 digits and the next 2 digits (e.g., 10, 54), would those two numbers each be random, as well?
Beta Was this translation helpful? Give feedback.
All reactions