erratically
verb
°In an erratic manner; unsteadily or randomly, unpredictably.
"When I saw the other driver weaving erratically across the road, I decided to keep my distance."