I am not stuck on anything I just wondered about the hint section for this topic in which it describes Math.random()
So the "hint" section says the following:
First we use Math.random() to create a random number from 0 up to 1.
For example, 0.5
Then we multiply by 5 to make the random number from 0 up to 5.
For example, 0.5 * 5 = 2.5
Next we use Math.floor() to round down to a whole number.
For example, Math.floor( 2.5 ) = 2
Finally we add 1 to change the range from between 0 and 4 to between 1 and 5 (up to and including 5)
Now I could be wrong, but if Math.random() can make any number from 0-1, does this not mean it can get 1, so when you multiply it by 5 and Math.floor() it to 5 then add 1 you get 6? So the range of damage is actually 1-6? (Albeit a rare chance to get 1 with Math.random(), I just wanted to check I understood it correctly.)