Question about floor transitions

Hey there everyone sorry if this is a simple question but:

I am thinking of a random idea to have a door that half of the time leads to one map, and the other half leads to another, all based on chance what floor you get.

would this be done via the conditional branch option or is there another feature set up for this?
I think your best bet would be to have a variable that is set by the "random" choice. Then use the conditional branch to check the variable so that if Variable = 1, it transfers to map 1, if Variable = 2, it transfers to map 2 or whatever.
Awesome thanks for the advice I will test that out in a bit 🙂

Original thread: https://forums.rpgmakerweb.com/threads/question-about-floor-transitions.35044/