I have tried many times and read a shed load of forum posts. But never got anywhere...
..until now!

I found a nice simple method which seemed the easiest to pull off.
So after 3 evenings of banging my head against the wall, I got all the maths sorted and now have a JS concept ready to use in unity ^^
The hardest part by far was linking all of the rooms up and spent hours thinking of the most suitable way of getting the job done.
Here is the final product. http://playpen.project-blackwidow.com/gen.htm
Its not really in any condition to be used more than a concept and practice. Feel free to look at the source of the page and see how its done if you can understand the mess lol. Its not commented very well... well at all really, but it should be self explanatory if you understand the process.
Here is the article http://roguebasin.roguelikedevelopment. ... generation
Enjoy
