RandBetweenI(Bottom: Integer; Top: Integer): Integer;
Bottom. Bottom border of the range.
Top. Top border of the range.
The RandBetweenI method returns a random integer number between two specified numbers.
To get evenly distributed random real number in the range [0; 1), use the IMath.Rand method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.RandBetweenI(0,100);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays a random number.
See also: