Skip to content

Commit 0a536d0

Browse files
authored
Add explanation for random integer generation
[ChunYanWong] Added comment explaining num as a random integer.
1 parent 5feeabf commit 0a536d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ 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+
// [ChunYanWong] num is the random integer number generated in the range of 1 and 100 inclusively

0 commit comments

Comments
 (0)