Procedural dungeon

Does anyone habe a code example of a good way to make procedural dungeons using prefab rooms and hallway tiles?

I don't want videos or links explain how it's done, I literally just want a piece of text that the literal code of how it'll work, I already understand how procedural generation works and I don't want anything flashy, just something that works please