This is my simplest solution that seems to work without glitches
it sets the Y Spawn position of a top pipe to a random number and then makes sure the bottom pipe is 300 lower