Procedural terrain?

How would I generate a perlin noise landscape after the game is started?