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

See also:
ibec_Random
ibec_RandomChar
ibec_RandomString
ibec_RandomVal
Data Comparer using cursors
IBEBLOCK and Test Data Generator

back to top of page
<< ibec_Random | IBEBlock | ibec_RandomChar >>