RandomFrom
Choose a random string from an array of strings.
Declaration
Source position: strutils.pp line 75
function RandomFrom(const AValues: Array of string) : string; Overload;
Description
RandomFrom picks at random a valid index in the array AValues and returns the string at that position in the array.
Errors
None.
See also
Name | Description |
---|---|
AnsiMatchStr | Check whether a string occurs in an array of strings, observing case. |
AnsiMatchText | Check whether a string occurs in an array of strings, disregarding case. |