Hi I want to put percentage to occur with Yanfly auto passive state

For example I want to make while battle if hp is more than 1 with 50 percent character will get state number 11

Here is the link of script http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/
And I just wanna make state change occur at random chance
maybe with percentage is the best

Please help me I used to use State Auto Apply RGSS3 from Victor Engine but Victor Engine doesn't have this Plugin for the VX

Thank you

Original thread: https://forums.rpgmakerweb.com/threads/hi-i-want-to-put-percentage-to-occur-with-yanfly-auto-passive-state.104078/