Each random 8-bit string is split as U R D L P C1 C2 C3. The first four bits move the walker, P controls pen state for that step, and the final three bits select one of eight colors.