I used to fly an S-76B that developed a strange fault. The heading bug would, at random times, kick round to a heading of 060 degrees. If coupled up, the aircraft would snap into a turn onto that heading. A bit disconcerting, especially in solid IMC under radar control.