#Basic Procedural Random Dungeon Generation
- Create one set holding used rooms.
- Create one set holding open ends.
- Place a random room, add it two both sets and flag it as the entrance.
- Repeat as long as you don't have your intended number of rooms:
- Randomly pick a used room ("current room").
- Pick a random direction.
- If the chosen direction is the border of the map, continue the loop.
- Remove the current room from the open ends.