This will generate a random terrain, which gets closet together after each iteration. The 'max difference' is how far it can be from a point's y to the next point's y.