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
// num represents a random number between the minimum and maximum values.
16
+
// In this program, variable num is assigned to a value between 1 and 100.
17
17
18
-
// program is designed for num to return random numbers between 1-100.
18
+
// In 5th line, expressions of math.floor and math.random are used to generate a random number between the minimum and maximum numbers that are defined by first const minimum= 1 and second const maximum = 100.
19
19
20
-
//expressions of math.floor and math.random are there for //generating a random number between the minimum and maximum values and then rounding it down to the nearest whole number...
20
+
// Also math.floor is used to round down the random number generated by math random to get to the nearest whole number.
0 commit comments