Terrain generation

Can someone walk me through how to generate a simple terrain, even if it’s only a flat mesh? I can’t seem to do it right.

Did you look at the tessellated plane sample? That would be a good place to start.