How to use "occasionally" 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

He walked in total darkness, the silence broken occasionally by the thunder of gun carriages and horses racing along the streets of Paris far above his head.

In fact, I have an idea for a story: an idea I think about occasionally."

It doesn't have to be every weekend if Junior does not want to, but occasionally

But Tina Evans was sympathetic; she knew how important the slot machines were to Vivienne, and she wasn't upset if Vivienne occasionally had to reschedule her visit.