Skip to content

Commit 540b62a

Browse files
committed
I completed key exercises for sprint-1
1 parent 939f52f commit 540b62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
1212
Math.floor is a method that rounds a number down to the nearest whole number.
1313
Math.random is a method returning any number that is greater than or equal to 0 and less than 1.
1414
first of all i will try to get a value from 0 to less than 1 from Math.random and multiple it by 100
15-
and apply Math.floor to the result which will give me the integer number and then add the minimum value i.e. 1 */
15+
and apply Math.floor to the result which will give me the integer number and then add the minimum value i.e. 1 */

0 commit comments

Comments
 (0)