Click or drag to resize
RandomStringBase64String Method (IRandom, Int32, RandomStringBase64CharacterPairs)
Generates a random string representing a sequence of Base64 digits.

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version:
public static string Base64String(
	this IRandom random,
	int length,
	RandomStringBase64CharacterPairs characterPairs


Type: Experilous.MakeItRandomIRandom
The pseudo-random engine that will be used to generate bits from which the return value is derived.
Type: SystemInt32
The length of the string to be generated.
Type: Experilous.MakeItRandomRandomStringBase64CharacterPairs
The specific Base64 character set used to generate the random string.

Return Value

Type: String
A random string, with each character being a uniformly random selection from the Base64 character set specified.

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