Skip to content

Commit 3754064

Browse files
correct comment on line 27 4-random.js exercise
1 parent 21c5ff7 commit 3754064

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ console.log(num);
2424

2525

2626

27-
// Last operation is to add 1 to hit the maximum value (since Math.random() never quite reaches 1). This ensures all 100 numbers (1 through 100) are equally reachable.eg 39 => 40
28-
27+
// Last operation is to add 1 to the generated rounded figure this can be any number from 0 to 99 since the rounding is using Math.Floor and not Math.Ceil we could get a (0) => adding 1 will insure the range is between 1 and 100 i.e minimuam and maximum
2928

3029

0 commit comments

Comments
 (0)