Here is a .capx for you.
I believe this is what you want. I also set the origin of the Line sprite to the left side so I can set it's width to the distance between itself and the next point. I added a few more things. Variables so you can change the spacing between each point and the scale (min/max height) of each point in the terrain.
I added a DestroyOutsideOfLayout to the Point sprite. I couldn't figure out how to break the point spawning loop once the edge of the screen was reached. Any ideas from anyone else on how to fix that?
Hope this helped.