Did you mean purposelessly?
purposelessly
verb
°In a purposeless manner.