Excel is your friend here. Put the tables into it and make a form, where you can choose the location of the exploring player (room/corridor), the monster matrix type and the number of visited rooms (TitD generator). Than you get the type of room/corridor, hazards, traps, monsters, treasures, ... as output. Be warned to use a computer with enough RAM, as the dozens of random calculations slow down the system extremely. I can provide you with a German Excel file, if you wish. I'm pretty sure a database would be the better solution for this task, but my knowledge in modelling the random query's in a database is limited. Using a real programming language is even better for this task, for sure.
There is also a great dungeon generator on BGG for AHQ. But it's Windows only.
Using one of this possibilities speeds up AHQ extremely. It's a true must have for this game. I suggest using Monstercards, too. It's way better than referring the monster and combat tables all the time.
Map generator on BGG:
https://boardgamegeek.com/filepage/12925/ahq-map-generatorzipA guy named Frank Clarke made a great article about the map generator:
http://www.fclarke.com/2016/11/advanced-heroquest-map-generator.html?m=1