Generates a random floating-point number from 0 up to a maximum value.
randomfloatupto(max)
| Parameter | Type | Description |
|---|---|---|
max |
Number | Maximum value |
String - A random floating-point number from 0 to max.
The randomfloatupto function generates a random decimal number starting from 0 up to the specified maximum value.
Result = RANDOMFLOATUPTO(100.0)
// Result: "47.832" (random between 0 and 100)
RandomPercent = RANDOMFLOATUPTO(100)
// Random percentage with decimals
RandomSeconds = RANDOMFLOATUPTO(60)
// Random duration up to 1 minute
- Scaling: Random values up to a limit
- Percentages: Random percent with decimals
- Time: Random durations
- Testing: Bounded decimal test data
- randomfloat - Random decimal 0-1
- randomfloatbetween - Random decimal in range
- randomintegerupto - Random integer up to max
- Starts from 0
- Returns result as string
- Uses the DataGeneration service