Check out this tech talk on procedural level generation in games - i.e. making random dungeons and more!
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/2415-procedural-level-generation-in-games-tech-talk-video