Integer Math conditions not always working?

Hi !
I have a problem with Int math : sometimes the game seems to bypass the > ,< , = conditions

On the picture below, I sometimes have a number between 1 and 6 printed on screen, wich shouldnt happen ?
And when i loop the last If into the first one the problem dissapear. I dont crash or anything.

So I’m a bit worried about the precision of the blueprint, if I’m not making any mistake here …

Thank you for your help

Notice that the “Random Integer in Range” node doesn’t have any execution pins. This means it is executed each time its value is needed. Which in your case means that for each comparison a new random number is generated. What you want to do is store the value in a local variable first and use that variable in your comparisons.

waow ok thank you Erik :slight_smile: