Get Random Float
Get a random floating-point number between min and max.
Category | Random |
Author | Pol Gubau |
Since | 1.0.4 |
Last Updated | 2025-03-17 |
Type | Sync |
Compatibility | Universal |
Example
Input
getRandomFloat(1, 5)
Output:
3.428571
Return
A random float between min and max.
Type: number
Props
Name | Type | Default | Required | Description |
---|---|---|---|---|
min | number | null | No | Minimum value. |
max | number | null | No | Maximum value. |
Notes
The function assumes min < max.
Tags
- random
- number
- float