Looking for a 2d Terrain Generation Noise Algorithm

Could someone point me to a tutorial or forum post, which could direct me on how to generate random worlds that look like the picture in this http://www.java-gaming.org/topics/wip-metallum-miner-2d-mining-game/26980/view.html

I have searched the forums and every noise generator seems to be for full maps, not in the way i want it to generate worlds. The link above was the closest i came, and even still that does not help me.

Anyone have any ideas, or could help me?

Thanks