Random

This Flow Script tutorial explains how to use the Random function with syntax and examples.

Description

The Random function returns a random number within a specified range, between the two arguments a and b.

Syntax

The syntax for the Random function is:

Random(a, b)

Parameters

a - The lower bound of the range (inclusive).

b - The upper bound of the range (inclusive).

Returns

The Random function returns a numeric value that falls within the range defined by parameters a and b.

Example

Let's look at a Random function example and explore how to use the Random function.

Random(9, 90)

This will generate a random number between 9 and 90. Note that the result is non-deterministic, meaning it can change with every function call. For instance, one call might return 23.547..., another might return 67,541..., and so on.

Last updated