File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2120,17 +2120,23 @@ Argument Ranges</h4>
2120
2120
In ''random(A, B, by C)'' ,
2121
2121
if A or B is infinite,
2122
2122
the result is NaN.
2123
- If C is infinite,
2124
- the result is A.
2125
2123
2126
2124
If A and B are finite,
2127
2125
but the distance between them (''B - A'' )
2128
2126
is large enough to become infinite in the user agent,
2129
2127
the result is NaN.
2130
2128
2131
- (If C is zero or negative,
2132
- the result is A,
2133
- but that falls out of the standard definition.)
2129
+ If C is negative and non-zero,
2130
+ the result is NaN.
2131
+ If C is infinite,
2132
+ the result is A.
2133
+
2134
+ If C is zero,
2135
+ or positive but close enough to zero
2136
+ that the range for the step multiplier
2137
+ (the <code> N</code> mentioned in the argument's definition)
2138
+ would be infinite in the user agent,
2139
+ the step must be <em> ignored</em> .
2134
2140
2135
2141
Note: As usual for [=math functions=] ,
2136
2142
if any argument calculation is NaN,
You can’t perform that action at this time.
0 commit comments