Click or drag to resize
RandomStringCharacters Method (IRandom, Char, Int32, Int32, Char)
Fills a portion of a provided character buffer with random characters using the provided character set.

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version:
public static void Characters(
	this IRandom random,
	char[] buffer,
	int start,
	int length,
	char[] characters


Type: Experilous.MakeItRandomIRandom
The pseudo-random engine that will be used to generate bits from which the return value is derived.
Type: SystemChar
The character buffer to which random charactors will be written.
Type: SystemInt32
The start index of the character buffer where random character generation will begin. Must be less than or equal to buffer.Length - length.
Type: SystemInt32
The number of random characters to be generated. Must be less than or equal to buffer.Length - start.
Type: SystemChar
The allowable characters to select from when generating the string.

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