Mountain outline formula

Is there a good formula for generating random mountain outline?

What kind of mountain outline? 2D? 3D? Pixels? Polygons? Think about what you are asking a bit first, we cant blind guess.

Sorry.I want to create 2d polygon mountain.

This might be of interest. It’s a simple 2D fractal technique using midpoints. Very simple, can tweak to yield good results.

Thanks I will use this.

Also, as such a terrain is composed of lines, you could use the simple collision technique I showed here should you need collisions.

I successfuly generated mountainous terrain using a simplex noise generator in octaves.

Here’s the code for the SimplexNoiseGenerator:
https://bitbucket.org/BasvS/lander/src/316dd5c7ef29108b7d056a846bd58bbe1f16a678/lander/src/nl/grunnt/lib/math/SimplexNoiseGenerator.java?at=master

Here’s the actual terrain generation in octaves:
https://bitbucket.org/BasvS/lander/src/316dd5c7ef29108b7d056a846bd58bbe1f16a678/lander/src/nl/grunnt/lander/mission/MissionGenerator.java?at=master

I think the prototype is currently not working, but this generator code works fine.