In Harry Potter the Room of Requirement appears to those in great need of it.
And "When it appears, it is always equipped for the seeker's needs."
For example, when Dumbledore's Army needed a place to hide from the Death Eaters, it appeared with barracks and supplies.