I think actor attack take factor in enemy's defense to get a better scaling to the damage, because a.atk^2 would grow exponentially. 16/3 seems a reasonable number but grow uncontrollable say if the number start getting bigger.
a.atk^2/b.def
10atk vs 3 def = 30 damage
50atk vs 3def = 833 damage!
50atk vs 30def = 83 damage
Other formula (that factor a.atk on b.defense) it should scale the damage better.
a.atk^2/a.atk+b.def
10atk vs 3 def = 7 damage
50atk vs 3def = 47 damage
50atk vs 30def = 31 damage
I'm not really fan of randomInt in damage formula as sometimes the random itself give more weight to the final damage or too small that it doesn't even matter, but I could see randomInt damage formula can be good in a carefully controlled number range.
Bear in mind this
is in relation to a small numbers combat system. The idea behind using the 1-10 random number = ATK is to
keep it low, but also allow for damage to go through. Admittedly, the formula is based partly on D&D, which uses a 1d20+ATK Bonus to overcome target Armor Class (I don't have
nearly enough experience with the damage formula to create an approximate), and is admittedly not a perfect solution to the OP.
That said, I was pointing out a flaw to the person I had quoted, who had suggested beefing up the defense using the player's ATK. Even just using base DEF with a low number attack provides a reasonable damage output, while nearly matching the player's ATK (or exceeding it) would all too often result in low to no damage. The player should always have a means to deal decent, relatively consistent damage.
Presuming the OP will be balancing ATK and DEF throughout the game, future weapons could use the Random+N formula, (Random 20+2 to simulate 2d10; Random 30 + 3 to simulate 3d10, for example,) or they could utilize the a.atk^2/b.def formula, or maybe a.atk^2/b.def+X (you can use a variable in formulas). The end goal is to maintain low numbers while also balancing it so that the player
can deal more than scratch damage.
Of course, they could always go with the classic 4*a.atk - 2*b.def (Let's say, 4*10 - 2*20) with an enemy health of, let's say at this point the enemy HP is 500 for a boss. Just flat damage, no variance, no elemental weaknesses or a.mat vs. b.mdf alternative (or barrier change or other gimmick), and a full 4 person party dealing the same damage, that's a seven turn boss fight
just in raw damage. Add differences in attack, (let's say the dedicated attacker is the only one who deals 20 and the lowest deals 4,) resistances, guarding, and gimmicks and that extends by quite a lot.
The most important thing to note is that the player should always have a means to deal more damage than the enemy can defend without relying on an overpowered weapon, strategy, or powerful item, with the caveat that they should deal no more than 1.5 their DEF (personal rule) with the basic attack in terms of raw damage. (if enemy DEF is 20, the maximum damage dealt should be around the 20-30 range.)