Skip to content

Commit 55c821c

Browse files
committed
modified answer of 1-key-exercise 4-random.js
1 parent c914559 commit 55c821c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ console.log(num)
1212

1313
//math.floor is round down the number returns to largest integer less than or equal to a given number.
1414
//math.random() could generate the number from 0 to <1 b random.
15-
//maximum refer to 100 and minimum refer to 0.
16-
//The calculation of num is different everytime because of math.random()
15+
//maximum refer to 100 and minimum refer to 1.
16+
//The calculation of num is different everytime because of math.random(). smallest value of num is 1. And largest is 100.

0 commit comments

Comments
 (0)