RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.RandomFrom Function

Randomly return one of given strings in array.

Pascal
function RandomFrom(const AValues: array of AnsiString): AnsiString; overload;
C++
AnsiString RandomFrom(const array of AnsiString AValues);

RandomFrom randomly returns one of the given strings in an array of strings. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!