How to use "aimlessly" in a sentence

Sentences

Putting them in his jacket pocket, he went out and continued to wander aimlessly around the streets, noticing only occasionally the strange atmosphere of excitement that was growing in the town

For three days I walked aimlessly, a madman