Random()

Format

Random([BoundaryValue1 ,BoundaryValue2])
Rand([BoundaryValue1 ,BoundaryValue2])

Note: You can use Random() or Rand() interchangeably.

Returns

Returns a random number in decimal format.

Inputs

BoundaryValue1: The lowest number that can be generated.
Behaviour: Optional
Dimension: SingleValue
Valid data types: Decimal, Integer

BoundaryValue2: The highest number that can be generated.
Behaviour: Optional
Dimension: SingleValue
Valid data types: Decimal, Integer

How to format data types

Examples

Expression: Random()
Result: A random number between 0 and 100.

Expression: Random(50)
Result: A random number between 0 and 50.

Expression: Random(-50, 700)
Result: A random number between -50 and 700.

Expression: Random(50, -700)
Result: A random number between -700 and 50.

 

Comments are closed