All the numbers needed to generate a map is premapped before I generate a map. This means that you will be able to replay specific maps, just by typing in your old seed.
First I will need to position the "not-so-random"-elements, in this case the world tile, the start tile and the boss tile. More tiles will be added, for instance a tile with a required item.
All tiles have rules applied to the. So, the tile on top of the world tile cannot be a path downwards, as that will be blocked.
After positioning those starter tiles, I will need to connect them via paths.
After that is done - I can fill out the rest of the map with filler rooms.