Okay. On the event that's going to take you to the first room, do this:
Control Variables: [001: Random Rooms] = Script: [1, 2, 3, 4, 5]Call Common Event: [001: Go to Next Room]I've used variable 1 - replace it with any variable you have available.
The script is an array with all the map numbers for all of your rooms, separated by commas.
The common event is a new one that is not set to parallel or autorun, and does not have a conditioning switch. Make it do this:
Control Variables [002: Next Room] = Script: $gameVariables.value(1).splice(Math.randomInt($gameVariables.value(1).length))This chooses a map number at random from the list, and removes it from the list, so subsequent calls can't pick a map that's already been visited.
I've used variable 2 for the map number - replace it with any variable you have available.
Again I've used variable 1 for the map list - replace it in both locations in that line, with whatever variable you used in the previous event.
Now what you do next in that common event depends on whether you're going to teleport to the same point in every room, or a different location in every room.
This first example assumes you'll teleport to the same coordinates in each room:
Control Variables [002: Next Room] = Script: $gameVariables.value(1).splice(Math.randomInt($gameVariables.value(1).length))Control Variables [003: X Coordinate] = 6Control Variables [004: Y Coordinate] = 7Transfer Player (use variables 2, 3 and 4 for the map number, x and y coordinates)The second example assumes you'll teleport to a different coordinate, depending on which map they're going to:
Control Variables [002: Next Room] = Script: $gameVariables.value(1).splice(Math.randomInt($gameVariables.value(1).length))Conditional Branch: Variable [002: Next Room] = 1 Transfer Player (specify map and location)Branch EndConditional Branch: Variable [002: Next Room] = 2 Transfer Player (specify map and location)Branch EndConditional Branch: Variable [002: Next Room] = 3 Transfer Player (specify map and location)Branch EndRepeat the conditional branch and transfer for each map, changing the value to compare the variable to, and the transfer destination, for each one.
As you can see, there's less work if you want to send them all to the same coordinates on each map.
Now, once you're on the next map, you'll no doubt need an event to take you to the next one in line, which will work just the same way for all of them but the last map. I'm not sure what you want to do here - I thought I asked you, but I can't see where, and I can't see your answer. I assume the last room will also have an exit, and that exit might take you to a 'standard' map? In that case, you can do this:
Change the common event, and add the following line after the first one:
Control Variables [002: Next Room] = Script: $gameVariables.value(1).splice(Math.randomInt($gameVariables.value(1).length))Control Variables [005: Rooms Left] = Script: $gameVariables.value(1).lengthagain using whatever variables you're assigning instead of 5 and 1.
Now create your 'exit' event on the first random map - a door, stair, whatever you plan to make it, with whatever trigger. It will have 2 event pages.
Page 1 will have no conditions, and will simply be a Transfer to the 'standard' map - this is the page that will run when all of the random maps have been visited and there are no others to go to.
Page 2 will be conditioned by Variable 5 (or whatever you've used above) being greater than 0. It will only have one event command, and that will be a call to the 'Go to Next Room' common event.
That's it. Copy that event onto all of your dungeon maps, and you're done.
So here's what's happening ...
when you first enter the 'dungeon', it will generate the list of maps that make up the dungeon.
Then it will choose one of those maps at random, remove it from the remaining dungeons available, and transfer you there.
Each time you come to an exit location, it'll choose one of the remaining maps at random, remove it from the list, and transfer you there.
When there are no more maps to visit, it will take you out to your 'standard' map.
If you follow this but have troubles implementing it, post screenshots to show what you've done. If you struggle to follow the logic and aren't sure at all about setting up your events, let me know and I'll give you screenshots. If you try it but get any errors, show your events and what the errors are and I'll help you troubleshoot.