How Procedurally Generated Terrain Works