We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 006df3d commit 998a7eeCopy full SHA for 998a7ee
Sprint-1/1-key-exercises/4-random.js
@@ -5,5 +5,11 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5
6
// In this exercise, you will need to work out what num represents?
7
// Try breaking down the expression and using documentation to explain what it means
8
+
9
+//Math.random() -> generates zero base random number
10
+// we need to multiply with digit number needed to allow possible number generated
11
+//Math.floor() method will round up to the base integer generated
12
13
// It will help to think about the order in which expressions are evaluated
14
// Try logging the value of num and running the program several times to build an idea of what the program is doing
15
+console.log(num);
0 commit comments