My current coding challenge.
I have a function I need to spit out a number between 16 and 10,000. Context: HP damage. Given that it accepts inputs x, y, z. x will never be below 1 or above 99. y will be between 15 and 255. z same rules as y. ie. (levelX + 2*atkY) - defZ = 16; // Here's the low end Getting from there to the high end is the problem. With this formula, 594 is the top. Which I could use, but I would have to scale my ideas down. (99 + 510) - 15 Any bright ideas?