From cf8c663c6d9ea9139649f5341fbc3b253876ed9f Mon Sep 17 00:00:00 2001 From: Aniruddh Agarwal Date: Thu, 10 Sep 2015 17:26:34 +0800 Subject: [PATCH] Added external link to substantiate js waypoint Added a link to FCC wiki to provide explanation of the formula used in the 'Create a JavaScript Slot Machine' basic javascript waypoint as well as the "Generate Random Whole Numbers within a Range" waypoint closes #2595 --- challenges/basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 42e5741b2e..f3b8ecaa0f 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -943,7 +943,7 @@ "difficulty":"9.9829", "description":[ "We can use a certain mathematical expression to get a random number between two numbers.", - "Math.floor(Math.random() * (max - min + 1)) + min", + "Math.floor(Math.random() * (max - min + 1)) + min. More info about how it works here.", "By using this we can control the output of a random number." ], "tests":[ @@ -1140,7 +1140,7 @@ "We are now going to try and combine some of the stuff we've just learned and create the logic for a slot machine game.", "For this we will need to generate three random numbers between 1 and 3 to represent the possible values of each individual slot.", "Store the three random numbers in slotOne, slotTwo and slotThree.", - "Generate the random numbers by using the system we used earlier:", + "Generate the random numbers by using the system we used earlier (an explanation of the formula can be found here):", "Math.floor(Math.random() * (3 - 1 + 1)) + 1;" ], "tests":[