Added support for new mode to reachRandomJointPositions