If I’m making a 2D game and I want my enemy to perform multiple random animations(transitions/actions) at random intervals, is it possible to be done using only code and not the Animation editor?

For example:

1- Enemy moves from point A to a random point at a random interval.

2- Then, he rotates to a random angle at a random interval.

3- Then he scales to a random point at a random interval

4- Repeat all the steps forever.