PhoneSystemGenerateRandomString Method
generator of random strings. Length of the string is defined by the call to Next(Int32, Int32) with minLen and minLen
Namespace: TCX.ConfigurationAssembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
public static string GenerateRandomString(
ushort minLen,
ushort maxLen,
PhoneSystemPasswordGenerationOptions Options = PhoneSystemPasswordGenerationOptions.DigitsLettersLowerCase
)
- minLen UInt16
- first parameter for Next(Int32, Int32)
- maxLen UInt16
- second parameter for Next(Int32, Int32)
- Options PhoneSystemPasswordGenerationOptions (Optional)
- character set
Stringrandom string which contains only specified type of characters and have at least
minLen characters
Method does not generate exception if maxLen<minLen by assuming that maxLen==minLen