Craig's Utility Library
4.0 Beta
|
Randomly generates strings More...
Public Member Functions | |
StringGenerator () | |
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... | |
Protected Member Functions | |
virtual string | NextString (System.Random Rand, int Length, string AllowedCharacters=".", int NumberOfNonAlphaNumericsAllowed=int.MaxValue) |
Returns a randomly generated string of a specified length, containing only a set of characters, and at max a specified number of non alpha numeric characters. More... | |
Protected Member Functions inherited from Utilities.Random.BaseClasses.GeneratorAttributeBase | |
GeneratorAttributeBase (object Min, object Max) | |
Constructor More... | |
Additional Inherited Members | |
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... | |
Randomly generates strings
Definition at line 33 of file StringGenerator.cs.
Utilities.Random.DefaultClasses.StringGenerator.StringGenerator | ( | ) |
Constructor
Definition at line 38 of file StringGenerator.cs.
string Utilities.Random.DefaultClasses.StringGenerator.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 48 of file StringGenerator.cs.
string Utilities.Random.DefaultClasses.StringGenerator.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 60 of file StringGenerator.cs.
|
virtual |
Generates next object
Rand | Random number generator |
Implements Utilities.Random.BaseClasses.GeneratorAttributeBase.
Definition at line 70 of file StringGenerator.cs.
|
protectedvirtual |
Returns a randomly generated string of a specified length, containing only a set of characters, and at max a specified number of non alpha numeric characters.
Length | Length of the string |
AllowedCharacters | Characters allowed in the string |
NumberOfNonAlphaNumericsAllowed | Number of non alpha numeric characters allowed. |
Rand | Random number generator |
Definition at line 89 of file StringGenerator.cs.