Osiris/API/Random

From Divinity Engine Wiki
Revision as of 13:59, 14 November 2017 by LarIlya (talk | contribs) (Created page with "===== Full Definition(s) ===== * query '''Random'''('''''[in]'''(INTEGER)'''''_Modulo''',''''' [out]'''(INTEGER)'''''_Random''') ===== Description ===== Returns a random integ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query Random([in](INTEGER)_Modulo, [out](INTEGER)_Random)
Description

Returns a random integer value between 0 and (_Modulo - 1).

Return Values
  • Success/Failure: Never fails.
  • _Random: A random number.
Notes

For a negative _Modulo, the result will be between (_Modulo + 1) and 0.

See Also

-