RandomRange
From SCAR Divi Manual
Definition
function RandomRange(const 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.