MathUtils.randomRange
FunctionGenerate a random floating-point value in the range [lo, hi).
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
randomRange(
lo,hi):number
Generate a random floating-point value in the range [lo, hi). Note, the range is inclusive at the lower end, and exclusive at the upper.
Parameters
| Parameter | Type |
|---|---|
lo | number |
hi | number |
Returns
number