Skip to content

Commit 71e9cc8

Browse files
debug2604debug2604
authored andcommitted
Answer 4-random.js: describe what num represents, min and max
1 parent 8085ffc commit 71e9cc8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
1515
// The method Math.floor() then return greatest integer of the value of this product.
1616
// And finally plus the value of minimum variable declared.
1717

18+
//`num` is a random integer between maximum and minimum inclusive.
19+
// The smallest value of 'num' can be 1
1820

19-
console.log(num)
21+
22+
console.log(num)

0 commit comments

Comments
 (0)