meta data for this page
  •  

ibec_Random2

Generates random numbers within a specified range.

Syntax

function ibec_Random2(MinValue, MaxValue : integer): integer;

Description

ibec_Random2 returns a random number within the range MinValue ⇐ X ⇐ MaxValue.

Example

execute IBEBlock
returns (iout integer)
as
begin
  i = 0;
  while (i < 100) do
  begin
    iout = ibec_Random2(50, 100);
    i = i + 1;
    suspend;
  end
end