Skip to content

Commit c1ded80

Browse files
complete the round down meaning
1 parent 1b10ec4 commit c1ded80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

1111
// In this exercise, num represent the value integer number between 1 to 100.
1212
//Math.random generates a random decimal number from 0 up to 1, but not including, 1.
13-
// down to the nearest whole number (integer).
13+
// Round down suppose 14.4 going to 14 as well as 14.9 also down to 14 to the nearest whole number (integer).
1414
// i think Changes the whole range to be greater by the minimum value
1515
//Ensures the value never comes less than 1.
1616
//Running the program several times generate the whole number(integer) like (1,10,15,44,66,55) several times between 1 to 100 all 100 number has a equal 1% chance to appear(generate).

0 commit comments

Comments
 (0)