“pure” nodes, and seems Random
call in this case - will be called each time their pins are accessed. So your result and debug print you seeing in fact are different values.
I suggest you to try to save the result of Random
call into a local variable and then print the local variable instead of Random