i m so noob, i just use variables to safe things....
the random int function.
I just saw that it is repeated, because it goes from the first state, to the state where the function is without stopping, in a loop.
I suppose that assigning this function to a state in which it only runs once, everything will be fine.