With text box I managed as follows:shuffled the array,generated the value of X,0 and then deleted the element x,0, after that the array was automatically reorganized and the positionx,0 gained a new value, so when I repeated the action, I just shuffled the array elements again and repeated the process, since the previous result would not be repeated due to having been deleted
My problem is generating the sprites without repetition from what I have in the array. The idea was to go through the array and only generate the sprite if its UID was not in it, but I can only generate the card and write the UID to the array, when I need to generate a second card, I cannot consult the array and only generate the card if his UID is not there. I think this happens because I can't consult a UID of a sprite that hasn't been created yet, maybe I need to create and destroy it if the UID is in the array