aimlessly

/ˈeɪmləsli/

adverb

  1. Without an aim, purpose or direction; in an aimless manner.

    "He wandered aimlessly through the crowd."