@@ -2272,7 +2272,7 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
22722272 the result’s type will be the consistent type.
22732273
22742274 <div class=example>
2275- For example, ''random(50px, 100%, by 1em)'' is valid
2275+ For example, ''random(50px, 100%, 1em)'' is valid
22762276 (assuming percentages are valid in the context this is used,
22772277 and resolve to a <<length>> ),
22782278 as all three arguments resolve to a length.
@@ -2317,7 +2317,7 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
23172317<h4 id=random-infinities>
23182318Argument Ranges</h4>
23192319
2320- In ''random(A, B, C )'' ,
2320+ In ''random(A, B)'' ,
23212321 if A is infinite,
23222322 the result is infinite.
23232323
@@ -2327,16 +2327,19 @@ Argument Ranges</h4>
23272327 or large enough to be treated as infinite in the user agent,
23282328 the result is NaN.
23292329
2330+ In ''random(A, B, C)'' ,
2331+ the same behavior for A and B as defined above applies.
2332+
23302333 If C is infinite,
23312334 the result is A.
23322335
23332336 If C is negative, zero,
23342337 or positive but close enough to zero
23352338 that the range for the step multiplier
2336- (the <code> N</code> mentioned in the argument's definition )
2339+ (the <code> N</code> mentioned in [[#random-evaluation]] )
23372340 would be infinite in the user agent,
23382341 the step must be <em> ignored</em> .
2339- (The function is treated as if it only A and B were provided.)
2342+ (The function is treated as if only A and B were provided.)
23402343
23412344 Note: As usual for [=math functions=] ,
23422345 if any argument calculation is NaN,
0 commit comments