Procedural Map Generation

I tried many different ways to generate map, and this way is very simple and good enough.
Reference - http://web.archive.org/web/20110825054218/http://properundead.com/2009/03/cave-generator.html