Hey there, I am working on a memory game with random answers, to do this I create a Set from a randomly selected integers between 1 and 25, 25 being the amount of buttons there are in the memory game.
But when I generate the integers and add them to the set for some reason it allows duplicates in the set while sets are only supposed to have unique items?
That’s because your code calls Random Integer In Range twice: first time for the check, and another time to set the value.
What you want to do is save your random value to a variable at the very beginning of this function, and then only work with that variable, not with the Random Integer In Range node.