How to make a skill that does random damage?

I am trying to make a skill that randomly does 10, 100 or 1000 damage. I have written many damage formulas to no avail; either they don't do any damage or don't work at all.


How should the formula be if I want all of them to have a different chance of happening?, for example, 100 damage being the most likely to happen, 10 damage being the second most likely and 1000 damage being the one with the lowest chance of happening?


How should I make this if I want them all to have the same chance of happening?


Thank you for your help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-does-random-damage.64266/