MV Need to get a state to make random attacks

Hey all,
Looking for a something that will allow a state to make the target attack randomly, ideally something like the triple attack skill in the database, but attacking allies and enemies.

Essentially it would work like this: I have a spider enemy. Spider uses their Web skill on characters. Web skill causes Freaked Out state. From that point, I want the affected character to randomly attack (allies and enemies both) 3 or 4 times (as you do when you walk into a spider web), then the state is removed at end of turn.

Open to any system that gets the same result, doesn't have to be a plugin if it's not necessary.
Would a state with Restriction: Attack Anyone and Trait: Action Times +2 accomplish your goal?

Edit: I confused Attack Times and Action Times. I don't think Attack Times will acquire new targets each time, and Action Times is a percent chance of additional actions, so maybe would work if you used multiple Action Times: 100%?

Edit 2: If you prefer that the afflicted character will only target other allies (not the self), you could try the plugin from this thread.
Would a state with Restriction: Attack Anyone and Trait: Action Times +2 accomplish your goal?

Edit: I confused Attack Times and Action Times. I don't think Attack Times will acquire new targets each time, and Action Times is a percent chance of additional actions, so maybe would work if you used multiple Action Times: 100%?

Since it doesn't go over 100%, I doubled the Action Times trait, did 100% on one and 50% on the other and this seems to be OK. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/need-to-get-a-state-to-make-random-attacks.146310/