Skip to content

Commit 4bd0d32

Browse files
updating the specification experation
1 parent 4f40f6e commit 4bd0d32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
99
// Try logging the value of num and running the program several times to build an idea of what the program is doing
1010

1111
// math.floor will make the number as a whole and remove any decimals or more likely to round the the nearest whole number
12-
// math.random will generate a random number between (0,1) inclusivly
12+
// math.random returns a random number in [0,1)
1313
// (maximum - minimum + 1) provide a range of generated random number
14-
// num is a random whole number (1,100) inclusivly
15-
14+
// num is a random whole number [1,100)
1615
console.log(num);

0 commit comments

Comments
 (0)