Skip to content

Commit a400f92

Browse files
committed
I added comments and verified random is always whole number
1 parent 56883ed commit a400f92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
77
// Try breaking down the expression and using documentation to explain what it means
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
10+
11+
// num represents a random whole number between 1 and 100
12+
13+
console.log(num); //prints the random number

0 commit comments

Comments
 (0)