Skip to content

Commit dc4066c

Browse files
rewriting the comments to be precise according to the programing specification
1 parent 985f34c commit dc4066c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ 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 from 0 to 1 but not 1
12+
// math.random will generate a random number between (0,1) inclusivly
1313
// (maximum - minimum + 1) provide a range of generated random number
14-
// num is a random whole number between 1 and 100
14+
// num is a random whole number (1,100) inclusivly
1515

1616
console.log(num);

0 commit comments

Comments
 (0)