I want to mint NFTs based on random numbers retrieved from Chainlink VRFv2.
And what I want to achieve is to make sure that each of the generated NFT is unique.\
For example, when I send request to Chainlink for lets say three random numbers, I'm retrieving uint256[] randomNumbers
array like this:
[
532267..3463,
234645..3742,
747424..1134
];
Then based on that numbers I wanna make sure that I get the random number within certain range, lets say between 1 and 10, so I do something like this:
uint256[3] memory myRandomNumbers = [
(randomNumbers[0] % 10) + 1,
(randomNumbers[1] % 10) + 1,
(randomNumbers[2] % 10) + 1
];
So I'm receiving array with my numbers like:
[ 3, 7, 8];
Which is 3-7-8
combination. And what I wanna do is to make sure this same combination will never appear again, which will guarantee uniqueness of each minted NFT.
Is something like this even possible?
Ideally I would want to call Chainlink for another set of random numbers in that occasion, but I experimented with that, and fulfillRandomWords
fails with another reqeust.