Generating Obstacles to be spaced far apart

Tried to space the obstacles 200 apart. Code changed:
obstacles[i].x = (rand()% 10 + i) * 200;