Divinity Engine Wiki
Advertisement

Generates a random integer value.

query Random(
[in] INTEGER _Modulo,
[out] INTEGER _Random
)
Parameters:
_Modulo
Add a brief description
_Random
Add a brief description

Description[]

Generates a random integer value from 0 to _Modulo - 1.

Examples[]

For example, in the statement Random(3,_r) the value of _r can be 0, 1 or 2.

Advertisement