Play Lottie animation at random intervals? (Ant crawling across screen etc)

As the title says: is it possible to randomly trigger a Lottie just to give a bit of life to a website?

Let’s say every 5-10 seconds a lottie character jiggles or an ant crawls across the screen or something like that.

Happy to use custom code - just unsure how you trigger the lottie animation manually.

Thoughts?