UtilStringGenerateRandomString(Char, Int32, Int32) Method

Generates a random string within the specified string-length range using the specified characters.

Definition

Namespace: DevCase.Core.DataProcessing.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GenerateRandomString(
	char[] charSet,
	int minLength,
	int maxLength
)

Parameters

charSet  Char
The character set.
minLength  Int32
The minimum string length.
maxLength  Int32
The maximum string length.

Return Value

String
The resulting string.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException charSet
ArgumentOutOfRangeException minLength;Value bigger than 0 is required.

See Also