function Random(const Range: Integer): Integer;
Returns a random number within the range 0 <= X < Range.