capriciously

adjective
governed or characterized by caprice : impulsive, unpredictable