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>
21202120 In ''random(A, B, by C)'' ,
21212121 if A or B is infinite,
21222122 the result is NaN.
2123- If C is infinite,
2124- the result is A.
21252123
21262124 If A and B are finite,
21272125 but the distance between them (''B - A'' )
21282126 is large enough to become infinite in the user agent,
21292127 the result is NaN.
21302128
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> .
21342140
21352141 Note: As usual for [=math functions=] ,
21362142 if any argument calculation is NaN,
You can’t perform that action at this time.
0 commit comments