Capricious

 Unpredictable and subject to whim, often used in law to refer to judges and judicial decisions which do not follow the law, logic, or proper trial procedure.