I'm doing trying to do a random damage forumla.
Example: [11 x RANDOM(1~1.125) - DEF] x STR x (Lv+STR)/256]
[11 x RANDOM(1~1.125) - 100] x STR x (4+123)/256]] [/code:aw6wwijx] How would I write this "RANDOM(1~1.125)" as? random(1+1.125)? [code:aw6wwijx] (11 x floor(RANDOM(1+1.125)) - 100] x STR x (4+123)/256)) [/code:aw6wwijx]
Develop games in your browser. Powerful, performant & highly capable.
[quote:2ff65doh]How would I write this "RANDOM(1~1.125)" as? random(1+1.125)?
It would be 1+random(0.125).
R0J0hound, if I had money, I donate to you. Not just for this, but for all the times you have helped me.