I think it's a room of requirement, meaning Harry could only find the room with all the stuff in it because he actually needed to find it. As with everything wizarding, it's a subjective, vague concept, but it works well enough.
__________________
The second star to the right
shines in the night for you
|