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


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


The syntax for the Random function is:

Random(a, b)


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

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


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


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