Brute force a formula based on numbers and the result?

659 Views Asked by At

I have thought of a very funny thing. In World of Warcraft, all weapons have some Damage Per Second variable specified. I want to know how they calculate that result, based on the result and some numbers. Here is what can affect it:

Speed: 1.90 //It swings every 1.9 seconds
Damage: 36 - 68 //Hits between 36 and 68 damage
Damage Per Second: 27.59 //This is what I want to calculate

There are some key things to consider when entering these numbers into the "calculator" I am looking for. They could be calculating this from "swings per minute" (speed/60) and the average damage ((36+68)/2).

Have you heard or seen these brute forcers before? It would basically go over all numbers and find a formula, which will always equal the result I input (27.59 in this case). Or at least approximately that number, because of floats et cetera.

Thanks for reading. Hopefully this gave you something to think about, because I think it is pretty cool.