ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_GetCompareRandomNumberGenerated

Returns if the random number generated succeeds the comparison with the supplied value

On this page
Util_GetCompareRandomNumberGenerated(min, max, comparisonValue, comparisonOperator)

Description

Returns if the random number generated succeeds the comparison with the supplied value

Parameters

  • minIntegerrequired
  • maxIntegerrequired
  • comparisonValueIntegerrequired
  • comparisonOperatorEnumrequired

Returns

Boolean

Source

Declared in the game's script sources at:

scar/scarutil.scar