meta data for this page
ibec_Random
Generates random numbers within a specified range.
Syntax
function ibec_Random(Range : integer): integer;
Description
ibec_Random returns a random number within the range 0 ⇐ X < Range. If Range=0, the result is a real-type random number within the range 0 ⇐ X < 1.
Example
execute IBEBlock returns (iout integer, dpout double precision) as begin i = 0; while (i < 100) do begin iout = ibec_Random(100); dpout = ibec_Random(0); i = i + 1; suspend; end end