Can I roll 1d6 for damage?

Is it possible to roll dice in the damage formula, or something to the same effect?


I could imitate a d6 roll by making it 3 damage with a 100 variance rate, but that would vary all damage, including any static modifiers I wanted to add. 


I want to be able to roll 1d6 + 3 for example. 
I recommend you look at this thread -




- for ideas. 🙂 It includes numerous functions, including random numbers etc. 🙂
Here are a number of D&D style damage formulas that others have put together


Basically


((Math.random() * 6) + 1)


Is equivalent to 1d6
Code:
1+ Math.randomInt(6)

Original thread: https://forums.rpgmakerweb.com/threads/can-i-roll-1d6-for-damage.58946/