Capricious
Definition

Sudden and unaccountable changes of mood or behavior .Unpredictable and subject to whim, often used to refer to judicial decisions which do not follow the law, logic or proper trial procedure.