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
See also:
ibec_Random2
ibec_RandomChar
ibec_RandomString
ibec_RandomVal
Data Comparer using cursors
IBEBLOCK and Test Data Generator
back to top of page
<< ibec_ShowMessage | IBEBlock | ibec_Random2 >>