Versions Compared

Key

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

...

applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

...

Syntax

...

random(number)

...

Package

...

Alias

...

Pkg Usage

Description

Excerpt
hiddentrue
Returns a random int value between 0 (inclusive) and the specified value (exclusive). This works for integers only.

Returns a random int value between 0 (inclusive) and the specified value (exclusive). This works for integers only.

Parameters

...

applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

...

Parameter name

...

Type

...

Required

...

Description

...

number

...

Number

...

Yes

...

Number to get the random int value for.

Return Type

Number

Example

Code Block
languagejs
number a = random(4);
print("a= " + a);

Prints: a= 3;

See also

array_routines
Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "math_routine" and space = currentSpace ( )
labels
Include Page
SIL:random
SIL:random