I want to create a keypad here, and I have converted the correct code into an array. I requested it to be randomized, but it keeps changing. How can I make it only selectable once?
You have this code
which is presumably doing something once.
But this code
is running every frame. And every time you call ‘random integer’, it will give you a new value. If you want it to stay the same, you need to put it in a variable. Then there’s not much point in printing it on tick, either
2023-05-19 15-03-33.mkv (2.9 MB)