Variance in Javascript

I have one question about skill variance.

I'ts possible in javascript to express the variance of the formula?

Eg: 50 + a.atk * 4 + a.hp = 750 Var 20% = 600 - 900

I'm doing a skill description with min and max value of the formula. Currently I'm getting the variance doing:

((X / 100) * 80) and ((X / 100) * 120)

As you can guess the final formula is getting really big (since I need $GameActor many times to retrieve all actor status 2 times).

So I ask: There's a better way to do it?

Thanks.
Why would you need skill description to contain the exact damage? Just say 1600 damage (min 80%, max 120%). Since 80% are 4/5 and 120% are 6/5, it's 3rd grade math for the player to do.

Other than that though there's hardly anything easier. You can't just type 80%, so you have to do like that. Maybe just swap the multiplication and division, you'll get a slightly more accurate result.
The only thing that would make the percentage easier would be a plugin construction.
I'm testing a idea of a Skill Book where the player can "study" the skills. The level of the skills is based on the number of info the player has on the skill. Since each skill will have a page with alot of custom info I want as much specific info as possible.

But yes. Just Var 20% works too. I just thing min - max value has a better feel in a skill book than a raw variance.
Why do you need to retrieve all actor status twice?
Why do you need to retrieve all actor status twice?

To get the variance from min and max. I'm not with maker open but I have to do something like (only the basic of the call):

((200 + ($gameActors.actor(a).atk * 4) / 100) * 80) and ((200 + ($gameActors.actor(a).atk * 4) / 100) * 120)
wouldn't

var user = SceneManager._scene.user(); ((200 + (user.atk * 4 / 100) * 80) and ((200 + (user.atk*4) / 100) * 120)

work? Also because of the way integers work, I would multiply by 80/120 then divide by 100 to avoid rounding the result down before multiplication, which overall will give you slightly lower values for your damage.
You can set the variance to zero and use Math.random and Math.randomInt in the damage formula.

Original thread: https://forums.rpgmakerweb.com/threads/variance-in-javascript.92350/