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
// In this exercise, you will need to work out what num represents?
7
+
// num is a randomly generated whole number in the interval [1, 100], meaning it can be any number from 1 to 100. It is created by generating a random decimal,
8
+
// rounding it down, and shifting it to start at 1.
7
9
// Try breaking down the expression and using documentation to explain what it means
8
10
// It will help to think about the order in which expressions are evaluated
9
11
// Try logging the value of num and running the program several times to build an idea of what the program is doing
12
+
// When I ran the program several times, num always produced a different whole number between 1 and 100,
13
+
// This shows that the program generates a new random number each time it runs.
0 commit comments