Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.26 KB

File metadata and controls

65 lines (43 loc) · 1.26 KB

randomfloatupto

Generates a random floating-point number from 0 up to a maximum value.

Syntax

randomfloatupto(max)

Parameters

Parameter Type Description
max Number Maximum value

Returns

String - A random floating-point number from 0 to max.

Description

The randomfloatupto function generates a random decimal number starting from 0 up to the specified maximum value.

Examples

Basic Usage

Result = RANDOMFLOATUPTO(100.0)
// Result: "47.832" (random between 0 and 100)

Random Percentage

RandomPercent = RANDOMFLOATUPTO(100)
// Random percentage with decimals

Random Duration

RandomSeconds = RANDOMFLOATUPTO(60)
// Random duration up to 1 minute

Use Cases

  • Scaling: Random values up to a limit
  • Percentages: Random percent with decimals
  • Time: Random durations
  • Testing: Bounded decimal test data

Related Functions

Notes

  • Starts from 0
  • Returns result as string
  • Uses the DataGeneration service