Skip to content

Commit cf88162

Browse files
committed
Add detailed breakdown comment for Math.random in 4-random.js
1 parent e1edb49 commit cf88162

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
1010

1111
//Solution
1212
//- "num" represents a random whole number between 1 and 100.
13-
//Break down of expression
13+
//Break down of expression
14+
//-Math.random: This generates a random decimal number between 0 and 1. It can return 0, but never reaches 1. (Example: 0.87).

0 commit comments

Comments
 (0)