Var damageThisRound = Math.floor(Math.random() * 5 + 1);


My Question is why we used * 5 why not any other number

Replace this line with your code.


Because the exercise says so?

Normally, if you where to build your own game, you can choice this value yourself (pick a good value so the balance is right), the person who created the exercise has decided that 5 is a good value for the balance of the game


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.