Random

From Soldat Community Wiki
Jump to: navigation, search
function Random(Min, MaxPlusOne: integer): integer;

Parameter Info:
 Min (Integer): The lowest value to return (inclusive)
 MaxPlusOne (Integer): The highest value + 1 to return

Description:
 This function will generate a random value. If you want a random number between 5 and 15 (both inclusive), use Random(5, 16).
 In other words, Min <= Number < MaxPlusOne