Merge pull request #4731 from chrisipanaque/fixes/math-random-description

Fixes Math.random() description in waypoint
This commit is contained in:
Logan Tegman
2015-11-26 09:05:21 -08:00

View File

@ -1025,7 +1025,7 @@
"title": "Generate Random Fractions with JavaScript", "title": "Generate Random Fractions with JavaScript",
"description": [ "description": [
"Random numbers are useful for creating random behavior.", "Random numbers are useful for creating random behavior.",
"JavaScript has a <code>Math.random()</code> function that generates a random decimal number.", "JavaScript has a <code>Math.random()</code> function that generates a random decimal number between 0 and 1.",
"Change <code>myFunction</code> to return a random number instead of returning <code>0</code>.", "Change <code>myFunction</code> to return a random number instead of returning <code>0</code>.",
"Note that you can return a function, just like you would return a variable or value." "Note that you can return a function, just like you would return a variable or value."
], ],