format
typescript
Random.NextFloatRanged(min, max)class: Random
description
Returns a random floating-point number within the range of min and max (excluding min and max).
parameter
| param_name | type | description |
|---|---|---|
| min | number | The minimum value. |
| max | number | The maximum value. |
reture
| type | description |
|---|---|
number | A random floating-point number. |
code example
typescript
let random = new Random();
let num = random.NextFloat(1,10);
Debug.Log(num);