aimlessly
verb
°Without an aim, purpose or direction; in an aimless manner.
"He wandered aimlessly through the crowd."