I dont really understand your problem. If you have 10 rooms each on its own layout with 1 exit then simply choosing a random number between 1 and 10 ( filtering out the one you are in of course ) will always take you to another room/layout.
Or am i missing the point