Random

From SCAR Divi Manual
Revision as of 01:51, 26 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <func>function Random(const Range: Integer): Integer; </func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function generates a random number f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

<func>function Random(const Range: Integer): Integer; </func>

Availability

SCAR Divi 3.00 > Current

Description

This function generates a random number from 0 to Range - 1 and returns it.

Example

var
  i: Integer;
begin
  for i := 1 to 5 do
    WriteLn(Random(5));
end.

See Also