Random terrain with recursion