float2 A uniformly random float2 value in the range [0, 1).
Returns a uniformly random float2 value with all components in the interval [0, 1).
| Parameter | Description |
|---|---|
| max | The componentwise maximum value to generate, exclusive. |
float2 A uniformly random float2 value in the range [0, max).
Returns a uniformly random float2 value with all components in the interval [0, max).
| Parameter | Description |
|---|---|
| min | The componentwise minimum value to generate, inclusive. |
| max | The componentwise maximum value to generate, exclusive. |
float2 A uniformly random float2 value in the range [min, max).
Returns a uniformly random float2 value with all components in the interval [min, max).
Each component is computed as NextFloat() * (max - min) + min, so floating-point rounding can in rare cases return a component equal to the corresponding component of max rather than strictly less than it. Clamp the result if you require components strictly less than max.