Handling Events via ScriptingObjects and FunctionsUtility functions RandInt function RandInt(ANum: integer): integer; Returns a random integer number comprised between 0 (zero) and ANum.