How to make a map/Open Terrain

Hello!

I want to write a script/program,which randomizes the Z coordinate,and for example from Z 0 coordinate to Z 20 coordinate change texture to ASD,from 200 to 400 change texture to ASD2 etc. Later i organize the coordinates,so the terrain will be smooth,not so spiny.

The terrain have much points,i want to change these.
How can i open,or how can i modify the script for the Terrain? (i dont know that Terrain have or not)
Please dont be mad at me,i know i’m noob now.
(And sorry my bad english)

Im having the same problem i cant make a map Im making a frst person game this is my first ever game the player falls in to the obess.