Thanks for help but I figured it out. Well it's not a very efficient solution but here is what I did.

I just got a random number from 1 to 4, then just put in the if statement that checks if it is open or not, to also check if the number is their unique number for that if statement.

Like I said a small amount of time could be wasted using this method. But it still works just fine because if it happens to choose a number that the door is open on. it will still be open until the random number can actually be used. So all is well. thanks though.