@ -924,7 +924,7 @@
|
|||||||
"title": "Generate Random Whole Numbers within a Range",
|
"title": "Generate Random Whole Numbers within a Range",
|
||||||
"difficulty":"9.9829",
|
"difficulty":"9.9829",
|
||||||
"description":[
|
"description":[
|
||||||
"We can use a certain mathematical expression to get a random number between between two numbers.",
|
"We can use a certain mathematical expression to get a random number between two numbers.",
|
||||||
"<code>Math.floor(Math.random() * (max - min + 1)) + min</code>",
|
"<code>Math.floor(Math.random() * (max - min + 1)) + min</code>",
|
||||||
"By using this we can control the output of a random number."
|
"By using this we can control the output of a random number."
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user