By some miracle, the same run I realized the number of rooms are random also had the best possible luck.