State that affects damage variance of all of an actor's attacks?

Hey guys, sorry if this is obvious, but I tried to look for something similar, but maybe I'm just not good at looking for things lol.

But yeah, I'm trying to create a state that affects the damage rate of all of the affected actor's attacks (physical/magical/certain) to either do -10% to 50% more damage.

So every time the user attacks with this state, they will get an added damage boost between the percentages of -10% and 50%.

Thank you!
You will need Yanfly's Buffs&States Core plugin. Make a state and add this code to it:

<Custom Confirm Effect>
if (this.isHpEffect() && value > 0) {
value = Math.round(value * (0.90 + (Math.random()*0.60)));
}
</Custom Confirm Effect>
Ah shoot, you're a legend, dude! Works perfectly, thanks man.

Original thread: https://forums.rpgmakerweb.com/threads/state-that-affects-damage-variance-of-all-of-an-actors-attacks.98806/