Craig's Utility Library
4.0 Beta
|
Randomly generates strings based on a Regex More...
Public Member Functions | |
RegexStringGenerator (int Length, string AllowedCharacters=".", int NumberOfNonAlphaNumericsAllowed=int.MaxValue) | |
Constructor More... | |
string | Next (System.Random Rand) |
Generates a random value of the specified type More... | |
string | Next (System.Random Rand, string Min, string Max) |
Generates a random value of the specified type More... | |
override object | NextObj (System.Random Rand) |
Generates next object More... | |
Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< T > | |
T | Next (System.Random Rand, T Min, T Max) |
Generates a random value of the specified type More... | |
Public Member Functions inherited from Utilities.Random.Interfaces.IGenerator< string > | |
T | Next (System.Random Rand) |
Generates a random value of the specified type More... | |
T | Next (System.Random Rand, T Min, T Max) |
Generates a random value of the specified type More... | |
object | NextObj (System.Random Rand) |
Generates a random value and returns it as an object More... | |
Properties | |
virtual string | AllowedCharacters [get, protected set] |
Characters allowed More... | |
virtual int | Length [get, protected set] |
Length to generate More... | |
virtual int | NumberOfNonAlphaNumericsAllowed [get, protected set] |
Number of non alpha numeric characters allowed More... | |
Properties inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase | |
virtual object | Max [get, protected set] |
Maximum allowed More... | |
virtual object | Min [get, protected set] |
Minimum allowed More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase | |
GeneratorAttributeBase (object Min, object Max) | |
Constructor More... | |
Randomly generates strings based on a Regex
Definition at line 33 of file RegexStringGenerator.cs.
Utilities.Random.StringGenerators.RegexStringGenerator.RegexStringGenerator | ( | int | Length, |
string | AllowedCharacters = "." , |
||
int | NumberOfNonAlphaNumericsAllowed = int.MaxValue |
||
) |
Constructor
Length | Length of the string to generate |
AllowedCharacters | Characters that are allowed |
NumberOfNonAlphaNumericsAllowed | Number of non alphanumeric characters to allow |
Definition at line 43 of file RegexStringGenerator.cs.
string Utilities.Random.StringGenerators.RegexStringGenerator.Next | ( | System.Random | Rand | ) |
Generates a random value of the specified type
Rand | Random number generator that it can use |
Implements Utilities.Random.Interfaces.IGenerator< T >.
Definition at line 71 of file RegexStringGenerator.cs.
string Utilities.Random.StringGenerators.RegexStringGenerator.Next | ( | System.Random | Rand, |
string | Min, | ||
string | Max | ||
) |
Generates a random value of the specified type
Rand | Random number generator that it can use |
Min | Minimum value (inclusive) |
Max | Maximum value (inclusive) |
Definition at line 105 of file RegexStringGenerator.cs.
|
virtual |
Generates next object
Rand | Random number generator |
Implements Utilities.Random.BaseClasses.GeneratorAttributeBase.
Definition at line 115 of file RegexStringGenerator.cs.
|
getprotected set |
Characters allowed
Definition at line 54 of file RegexStringGenerator.cs.
|
getprotected set |
Length to generate
Definition at line 59 of file RegexStringGenerator.cs.
|
getprotected set |
Number of non alpha numeric characters allowed
Definition at line 64 of file RegexStringGenerator.cs.