Spawn a random dungeon under a structure

So i have a structure, and i want a random generated dungeon (which i alredy have) to spawn under it. I can spawn the dungeon with a jigsaw block, but how to mak it, so the structure spawns the dungeon below?

Continue to help post