RenatoB, there are a few things in your code that seem a little funny to me, but I tested some of them out and they seem to work (but just aren't quite the way I would have done it).
I'm a newbie programmer trying to accomplish some personal projects. When I compare my scripts with others that were written by more experienced programmers, I see that are very different. But how in the end everything works, I keep following this line.
I believe the main problem is that the CheckAnswer function is not working with the same "numbers" instance as the one you touch. When you touch one, it is the only instance "picked", but when you call the CheckAnswer function it will randomly pick any instance to work with. So, You should pass in the numbers.UID into the CheckAnswer function, and then in there "pick" that unique ID.
I'll check it. What I find strange is that the texts fields that I include for testing, shows the same number in both: the number of the draw as well as what was clicked. I thought it was something wrong, the text fields would show that.
One other potential problem is in your "On Start of layout" section, where you "Pick a random numbers instance". You repeat that loop 20 times, but theoretically it could pick the same numbers instance all 20 times. Out of 20 times through the loop, you will have no way of knowing how many instances got picked more than once, and how many never got picked. If you have 20 instances of numbers, and want to set each one to a random animation frame, then replace the "Repeat count times" and "Pick a random instance" with "For each numbers". (the part where you choose a random index and delete it out of the array seems fine as far as I can tell).
In fact the numbers are not repeated, only the "0" but it's intentional.