Difference between revisions of "Random"

From SCAR Divi Manual
Jump to: navigation, search
Line 23: Line 23:
 
*[[RandomRange]]
 
*[[RandomRange]]
 
*[[Rand]]
 
*[[Rand]]
 +
*[[RBool]]
 +
*[[RBoolEx]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Revision as of 23:01, 27 June 2011

Definition

function Random(const Range: Integer): Integer;

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