infinite terrain

Hello unity users I would like to create a infinite terrain script so how would i do this? I was thinking on how to make it like when the player is near the edge of the terrain, Another terrain is created right beside the existing terrain, and the terrain im making is created with cubes, And one more thing how would i make a random terrain so the cubes would make hills and stuff like minecrafts terrain.

The Unity3D locomotion system demo has a nice example of generating infinite terrain. If you look in the demo script assets folder, you’ll see I believe a step switcher script, or something named along those lines, that has a good basis for you to start with.

http://unity3d.com/support/resources/unity-extensions/locomotion-ik.html

Thank you im downloading it right now and i will go on from there.

thx man i will look into it