Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this Page

...

Description

Returns a floating-point, pseudo-random number from 0 (inclusive) up to but not including 1.

This is similar to the JavaScript Math.random().

Syntax


Code Block
Math.random()


Example

Expression: Math.random()

Result: 0.29628396818343006

randomUUID

DescriptionGenerates a random UUID string.
Syntax


Code Block
Math.randomUUID()


Example

Expression: Math.randomUUID()

Result: 2c28e2c0-9767-11e4-9a0d-c3f2b01def6d

round

Description

Returns the simplest integer after rounding off the original valuenumber of the value rounded off to the nearest integer.

This is similar to the JavaScript Math.round().

Syntax


Code Block
Math.round(value1)


Example

Expression: Math.round(3.14159265358979)

Result: 3

Expression: Math.round(3.64159265358979)

Result: 4

Expression: Math.round(-3.14159265358979)

Result: -3

...