Random dungeon generator

Hi,

I am creating little algorithm for fun, I want to generate random map with coridors and rooms.

this is quick one evening work. so…
http://flashmx.puslapiai.lt/temp/rogueflash01.html

base idea is… make randome maze… clear it… do some loops… then add some rooms.

may be you will have some ideas or advices for this subject.

thanks.