Indeed it is randomized, if it didn't dissapear that's because it had a lock on it, which takes more knocks to open. When all the Occupied Rooms are cleared on a Floor a button saying Go To Shop should show and then you can advance.