Skip to content

Commit 2e083e6

Browse files
committed
changed comment
1 parent f4c8a01 commit 2e083e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sprint-1/1-key-exercises/4-random.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
88
// It will help to think about the order in which expressions are evaluated
99
// Try logging the value of num and running the program several times to build an idea of what the program is doing
1010

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).
11+
// max 100 - min 1 = 99 + 1 = 100

0 commit comments

Comments
 (0)