This is not just about finding a random number,
The answer I am looking for is how to add an expression to a random number to calculate a number based on the expression.
For example a base random number from a range of numbers, + the current lvl of a character, * the character's damage gain.
If I am creating a character that does damage between two numbers like this in java
,
Damage = 44 to 55 per hit
and I want to write this into a variable, how can I do this?
I am trying this,
double BottomDamage = 44 + level * 1.9;
double TopDamage = 55 + level * 1.9;
What is the proper way to write something like this if the damage would be between these two numbers 44 through 55 + level * 1.9
???