Merge pull request #4093 from ltegman/fix/waypoint-random-number-range-wording-3997
Fix Waypoint Random Numbers in Range Wordingpull/4125/head
commit
3174abb00c
|
@ -1093,7 +1093,7 @@
|
|||
"Here's the formula we'll use. Take a moment to read it and try to understand what this code is doing:",
|
||||
"<code>Math.floor(Math.random() * (max - min + 1)) + min</code>",
|
||||
"Define two variables: <code>myMin</code> and </code>myMax</code>, and set them both equal to numbers.",
|
||||
"Then create a function called <code>myFunction</code> that returns a random number that's greater than or equal to <code>myMin</code>, and is less than <code>myMax</code>."
|
||||
"Then create a function called <code>myFunction</code> that returns a random number that's greater than or equal to <code>myMin</code>, and is less than or equal to <code>myMax</code>."
|
||||
],
|
||||
"tests": [
|
||||
"assert(myFunction() >= myMin, 'message: The random number generated by <code>myFunction</code> should be greater than or equal to your minimum number, <code>myMin</code>.');",
|
||||
|
|
Loading…
Reference in New Issue