| C# | |
|---|---|
public static string RandomText( int countOfChars, string options, string customSymbols ) | |
Parameters
- countOfChars
Type: System.Int32
The count of chars in result text.
- options
Type: System.String
The set of options ("d" - use digits, "c" - use big letters, "s" - use only customSymbols, "f" - first letter is large)
- customSymbols
Type: System.String
The custom set of letters to use with option "s".
Return Value
Type: System.String
The random text.
The following example shows call the RandomText method.
| C# | Copy Code |
|---|---|
var result = Macros.TextProcessing.RandomText(20, "dcf", ""); | |
| PHP | Copy Code |
|---|---|
$result = Macros::TextProcessing::RandomText(20, "dcf", ""); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family