chore(i18n,curriculum): processed translations (#42162)
This commit is contained in:
@ -11,9 +11,9 @@ dashedName: generate-random-fractions-with-javascript
|
||||
|
||||
随机数非常适合用来创建随机行为。
|
||||
|
||||
在 JavaScript 中,可以用 `Math.random()` 生成一个在`0`(包括 0)到 `1`(不包括 1)之间的随机小数, 因此 `Math.random()` 可能返回 `0`,但绝不会返回 `1`。
|
||||
在 JavaScript 中,可以用 `Math.random()` 生成一个在`0`(包括 0)到 `1`(不包括 1)之间的随机小数。 因此 `Math.random()` 可能返回 `0`,但绝不会返回 `1`。
|
||||
|
||||
**提示:** [使用赋值运算符存储值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)这一节讲过,所有函数调用将在 `return` 执行之前结束,因此我们可以 `return`(返回)`Math.random()` 函数的值。
|
||||
**提示:**[使用赋值运算符存储值](/learn/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator)这一节讲过,所有函数调用将在 `return` 执行之前结束,因此我们可以 `return`(返回)`Math.random()` 函数的值。
|
||||
|
||||
# --instructions--
|
||||
|
||||
|
Reference in New Issue
Block a user