+//So num is storing the value of a random number generated by the method Math.random this will be a decimal number between zero and one that is then multiplied by 100 (100(maximum) -1(minimum) +1) and then the Math.floor method will round that number down to the nearest whole number and then finally whatever this number is, one is added on to that number and this final number is what is stored in the variable num. This final number is what is stored in the variable num. The smallest value it can be is 1, and the largest value it can be is 100 as plus minimum means 1 will always be added.
0 commit comments