MV Weighed Random Int

Is there a way to make a weapon's atk a random number choice or variable?

For example:
DMG = Choose(0, 1, 1, 1 ,1, 2, 2, 2, 6)

In this example the weapon would add 0, 1, 2, or 6 to the users attack with heavier weights on 1 or 2. This would be recalculated for each attack
Set a variable to the script

[0, 1, 1, 1, 1, 2, 2, 2, 6][Math.randomInt(9)];

Original thread: https://forums.rpgmakerweb.com/threads/weighed-random-int.148563/