Perlin noise is a way of generating worlds with games like this. Minecraft uses it to generate heightmaps and tunnels. Perlin noise randomly increments a value a 1,0, or -1 to give it a smooth looking image (much like yours looks like).