Unreal Engine Random İnteger

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

image

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 :slight_smile:

2023-05-19 15-03-33.mkv (2.9 MB)

As mentioned above, in your video you generate a random number 120 times per second using Tick. You want something closer to:

2 Likes