Skip to content

Commit 9fe6f44

Browse files
committed
Replace 4-random.js with version from main
1 parent 36a00cc commit 9fe6f44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
const minimum = 1;
22
const maximum = 100;
33

4+
45
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
56

7+
8+
69
// In this exercise, you will need to work out what num represents?
710
// Try breaking down the expression and using documentation to explain what it means
811
// It will help to think about the order in which expressions are evaluated

0 commit comments

Comments
 (0)