MZ How to have a random damage not 0?

I'm using visustella battle core and I'm not sure what to edit so that damage 0 doesn't exist but returns a random nb between 1 and 6 instead.
(random * 5) + 1
... or, random(5) + 1, whichever is the function.
JavaScript:
Math.randomInt(5) + 1
Or Math.max(minimumDamage, MaximumDamage)

Code:
Math.max(1, Math.RandomInt(5))

This way you are 100% sure, that skill will deal at least 1 point damage.
Or Math.max(minimumDamage, MaximumDamage)

Code:
Math.max(1, Math.RandomInt(5))

This way you are 100% sure, that skill will deal at least 1 point damage.
The problem is that (I believe) this would bias it towards 1, as a roll of 0 or 1 would both produce 1 damage.

I would personally use Math.floor(Math.random() * 6) + 1

Which works, but I'm not sure whether VS's battle core has some other notation that makes it simpler.
Math.max(a, b) is checking given values and checks wich one is lowest and highest so if B will be lower ( 0 ) and a will be 1 ( Math.max(1, 0) ), then Math.max will return 1.

Try any online JS validator and check yourself.
Is there a way to put that in the visustella plugin or I must had it to each skill damage formula?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-a-random-damage-not-0.135159/