and some use a combination of both. You might be assigned a certain room but if they have a room ready when you checkin and you wish to take that one over the assigned room, you will be given it.
So if you check in and they say your room is not ready, you can ask if anything else is.