Cabin numbers on all the DCL ships follow a logical pattern. They are all 4 digits long with the first digit being the deck number. The second digit will be either a 0, 1, 5 or 6. The 0's & 1's are port side, while 5's & 6's are Starboard. The last two digits are assigned sequentially from the front (bow) to the back (aft or stern) of the ship.
No big deal but just a slight correction to this in that the Dream/Fantasy can have a 5 digit long number as the decks go higher than 8 which is on the Magic/Wonder so the first 1 or 2 numbers would refer to the deck.