From 2e819b2e0a4dfe47aa31cb5fc346690c0d6b3a30 Mon Sep 17 00:00:00 2001 From: DaVicki Date: Fri, 29 May 2020 02:56:17 -0600 Subject: [PATCH] fix(curriculum): update instructions (#38865) * fix(learn): update instructions edited text - change "returns a random number" to "returns a random whole number" to be more clear on the problem statement. Address review comments : add the keyword "whole" to description, to make it consistent with challenge title and Instructions. --- .../generate-random-whole-numbers-within-a-range.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-within-a-range.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-within-a-range.english.md index 67ebaa3a17..19d31e2cd2 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-within-a-range.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-within-a-range.english.md @@ -9,7 +9,7 @@ forumTopicId: 18187 ## Description
-Instead of generating a random number between zero and a given number like we did before, we can generate a random number that falls within a range of two specific numbers. +Instead of generating a random whole number between zero and a given number like we did before, we can generate a random whole number that falls within a range of two specific numbers. To do this, we'll define a minimum number min and a maximum number max. Here's the formula we'll use. Take a moment to read it and try to understand what this code is doing: Math.floor(Math.random() * (max - min + 1)) + min @@ -17,7 +17,7 @@ Here's the formula we'll use. Take a moment to read it and try to understand wha ## Instructions
-Create a function called randomRange that takes a range myMin and myMax and returns a random number that's greater than or equal to myMin, and is less than or equal to myMax, inclusive. +Create a function called randomRange that takes a range myMin and myMax and returns a random whole number that's greater than or equal to myMin, and is less than or equal to myMax, inclusive.
## Tests