Why is the random integer in the range toggling > = boolean value

i don’t know what happened to unreal


image
one time 1 is false but after is true

“Random Integer in Range” is a pure function. So every time you access its output, it runs the function again. In this case, the >= and convert to string operations call different instances of this function and hence can give different results. Try saving the output of the random integer function in a variable and use that value instead.

3 Likes