I tried adding a 1 second pause before the jump as suggested, but unfortunately it did not help
The loop itself is very slow, there is a wait for character to reach the end position before jumping to the start, and that takes around 5 seconds, so I don't think pausing is the issue...
Also, forcing the random_car variable to 1 (and so having always the first car run in the background) fixes the problem, so I am afraid this is somehow related to the random number generator.