You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/1-key-exercises/4-random.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ EXPLANATION IN ORDER OF EXECUTION (OPERATOR PRECEDENCE):
20
20
calculates the total number of possible values between minimum and maximum, (but not including) 100 (e.g., 0 to 99.999...).
21
21
22
22
4. Math.floor(...) — Function Call:
23
-
Rounds up the decimal to the nearest whole number, giving a whole number from 0 to 99.
23
+
Rounds the decimal down to the nearest whole integer, converting the range from [0, 99.999...] to an integer from 0 to 99.
24
24
25
25
5. + minimum — Addition (Lowest Precedence):
26
26
Shifts the whole set of numbers up so that the lowest outcome becomes `minimum` (1) instead of 0, resulting in a whole number between 1 and 100 inclusive.
0 commit comments