Reorientation of a rigid body under conditions of uncertainty