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 f4c8a01 commit 2e083e6Copy full SHA for 2e083e6
Sprint-1/1-key-exercises/4-random.js
@@ -8,6 +8,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
8
// It will help to think about the order in which expressions are evaluated
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
-// num represents a whole number that is picked randomly picked between 1 and 100.
12
-// Math.floor is rounding down a given number to the nearest integer.
13
-// Math.random returns a random floating number between 0 (inclusive) and 1 (exclusive).
+// max 100 - min 1 = 99 + 1 = 100
0 commit comments