Hi all,
Have I made an glaring error here? Surely it should never hit the print string?
I’ve been staring at this too long so perhaps I can no longer see the obvious!
Thanks,
Sabre.
Hi all,
Have I made an glaring error here? Surely it should never hit the print string?
I’ve been staring at this too long so perhaps I can no longer see the obvious!
Thanks,
Sabre.
Every time you’re checking that variable it’s generating a new random integer. So it’s a different number at every branch. Meaning it could be 0, 1, 2 at the last branch.
You should promote the result of Random Integer in Range to a local variable before the first branch. And then compare that variable, instead of the output of the random node.
Solved. Thanks Mosel3y!
I had a feeling it was something I should have spotted!