Return a random element of an array of numbers.
Source position: math.pp line 857
function RandomFrom( |
const AValues: array of Double |
):Double; overload; |
const AValues: array of Integer |
):Integer; overload; |
const AValues: array of Int64 |
):Int64; overload; |
RandomFrom returns a random element from the array AValues. The return value has the same type as the type of the array elements.
#rtl.system.Random |
|
Generate random number. |
|
Return a random number in a range. |