Skip to content

Commit c23bfd0

Browse files
change comment about math.random
1 parent 46171e4 commit c23bfd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ console.log(num);
1212

1313
//num is a random number between 1 and 100 including 1 and 100 [1,100]
1414
//Math.floor rounds the decimal number to nearest lower number
15-
// Math.random() generates a random decimal number between 0 and 1 including 0 and 1 [0,1]
15+
// Math.random() generates a random decimal number between 0 and 1 including 0 but not including 1 [0,1)
1616
// when max – min need to add +1 or not all the numbers will be
1717
// included for instance max=5 min=1 5-1=4 but there are
1818
// 5 numbers, 1, 2, 3, 4,5 so need to +1

0 commit comments

Comments
 (0)