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 a4ffc85 commit 3aa28faCopy full SHA for 3aa28fa
1 file changed
Sprint-1/1-key-exercises/4-random.js
@@ -8,8 +8,8 @@ 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 random number in an inclusive range from 1 to 100
+// num represents a random number in the interval [1,100]
12
// First, it starts with 100 - 1 + 1, which is equals to 100
13
-// Secondly, it multiply with Math.random(), which the function returns any number between 0 and 1, inclusive.
+// Secondly, it multiply with Math.random(), which the function returns any number in the interval [0,1]
14
// Thirdly, Math.floor() rounds down and returns the largest integer less than or equal to a given number
15
-// Finally, it adds 1
+// Finally, it adds 1
0 commit comments