This code may be in the general sheet. Make sure it's included in all layouts. Double-check that you made everything exactly as in my screenshot. If it doesn't work, please post your project file.
.
Sorry, forgot to add - your room layouts should be named Room0, Room1, Room2.
Or you can change the action like this:
Go To Layout "Room" & (AdvancedRandom.permutation(permutationIndex)+1)
then you can name layouts Room1, Room2, Room3.