Fetching details from the dictionary...

restlessly; aimlessly; without purpose
to loiter; to drift; to hang about doing nothing; to wander aimlessly; to be restless
to be restless; to fuss; to be in a fidget
彼は落ち着かずうろうろしている。
He is restlessly pacing around.
何をするか決められず駅の周りをうろうろしていた。
I was wandering around the station.
店内をうろうろして時間をつぶした。
I wandered around the store to kill time.