RandomRange

From SCAR Divi Manual
Revision as of 02:50, 4 September 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function RandomRange(aFrom, aTo: Integer): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function RandomRange(aFrom, aTo: Integer): Integer;

Availability

SCAR Divi 3.00 > Current

Description

Returns a random number from the range [aFrom, aTo - 1].

Example

var
  i: Integer;

begin
  for i := 1 to 5 do
    WriteLn(RandomRange(1, 5));
end.

See Also