We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985f34c commit dc4066cCopy full SHA for dc4066c
Sprint-1/1-key-exercises/4-random.js
@@ -9,8 +9,8 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
9
// Try logging the value of num and running the program several times to build an idea of what the program is doing
10
11
// math.floor will make the number as a whole and remove any decimals or more likely to round the the nearest whole number
12
-// math.random will generate a random number from 0 to 1 but not 1
+// math.random will generate a random number between (0,1) inclusivly
13
// (maximum - minimum + 1) provide a range of generated random number
14
-// num is a random whole number between 1 and 100
+// num is a random whole number (1,100) inclusivly
15
16
console.log(num);
0 commit comments