mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): clarify random property (#54211)
Co-authored-by: Sem Bauke <semboot699@gmail.com>
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ dashedName: step-100
|
||||
|
||||
# --description--
|
||||
|
||||
Add a `random` property which takes the first two numbers from an array and returns a random number between them. Use the `Math.random()` function to help.
|
||||
Create a `random` property. This property should use the first two numbers from an array to generate a random whole number. The range for this number starts at the smaller positive number (inclusive) among the first two numbers and ends just before the sum of these two numbers. Use the `Math.floor()` and `Math.random()` methods for the calculation.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user