[adverb]He ran erratically through the building.In her study, books were arranged erratically on chairs, tables and shelves.The machine is working erratically - there must be a loose connection.
ERRATICALLY
Meaning of ERRATICALLY in English
Cambridge English vocab. Кембриджский английский словарь. 2012