Difference between revisions of "RandomTPA"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 8: Line 8:
  
 
===Aliases===
 
===Aliases===
*TPARandom (SCAR Divi 3.26 > Current)
+
*TPARandom (SCAR Divi 3.26 > 3.35)
  
 
==Description==
 
==Description==

Latest revision as of 12:53, 14 July 2012

Definition

function RandomTPA(const Count, XRange, YRange: Integer): TPointArray;

Availability

SCAR Divi 3.28 > Current

Aliases

  • TPARandom (SCAR Divi 3.26 > 3.35)

Description

Generates a random TPointArray with a length specified by Count and the ranges for the x and y coordinates of all points specified by XRange and YRange.

Example

begin
  WriteLn('TPointArray[' + TPAToStr(RandomTPA(10, 10, 10)) + ']');
end.