RBool

From SCAR Divi Manual
Jump to: navigation, search

Definition

function RBool: Boolean;

Source Code

function RBool: Boolean;
begin
  Result := Boolean(Random(2));
end;

Availability

SCAR Divi 3.00 > Current

Description

Returns a random boolean value. An extended function with additional functionality is available as RBoolEx.

Example

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

See Also