Click or drag to resize
RandomStringHexadecimalString Method (IRandom, Int32, RandomStringCasing)
Generates a random string representing a sequence of decimal digits.

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static string HexadecimalString(
	this IRandom random,
	int length,
	RandomStringCasing casing
)

Parameters

random
Type: Experilous.MakeItRandomIRandom
The pseudo-random engine that will be used to generate bits from which the return value is derived.
length
Type: SystemInt32
The length of the string to be generated.
casing
Type: Experilous.MakeItRandomRandomStringCasing
The letter casing used for digits A through F. Must be either upper or lower casing.

Return Value

Type: String
A random string, with each character being a uniformly random selection decimal digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F }.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRandom. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also