Yanfly Action Sequence - Random Skill?

Hello 🙂 i want to have actor play a random skill, can someone show me the way to do it?
I think it may be like this
<target action>
var[1] = random(1 to 10)
if var[1] = 1 .....
else if var[1] = 2 ....
else .......
end
</target action>

But i know it's incorrect, can you help me to correct it
Instead of doing it with action sequences, you should have the skill call up a common event, which can then force a skill depending on the randomized variable.


you can watch this.

I watched it and adapt it to my attack skill

-------------------------------------------------------

this is my random atk action sequence
Thanks guy, common event may work

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequence-random-skill.83458/