I will assume that the booked berth relates to passenger ships where a person could book a berth. This meant that they had their name in the book and had a certain berth or place to sleep on the ship. Those who had not booked their berth took their chances.
What does `took their chances' mean in this paragraph?
Please explain it.