I have created an array sheet existing of numbers: 1 to 10. I also have a button in game that calls a value from the array when clicked. I wanted to make it so that it will always call (a random number). So basically when the button is clicked, it can show anything between 1 to 10. ex. 1,5,9,6,2... and so on.
My problem is, that when I click the button to call a random number, it sometimes can come out the same. ex. 1,5,2,2,8,10,8,8,8... and so on.
I do not want the possibility of the same number appearing twice or more in a row.
Can someone please explain to me how I may approach this problem with a better solution than I have already tried. I tried the (variable) If equal to (array) statement, and toyed with it for a good while, but couldn't produce anything that would work.
Now I do not believe you need to know any specifics more than this, but if you still do, I am more than happy to provide more detail.