Click or drag to resize
RandomString Class
A static class of extension methods for generating random strings with various character sets and patterns.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomString

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomString

The RandomString type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAlphabeticString(IRandom, Int32)
Generates a random string using only letters from the English alphabet, both upper and lower case.
Public methodStatic memberAlphabeticString(IRandom, Int32, RandomStringCasing)
Generates a random string using only letters from the English alphabet.
Public methodStatic memberAlphabeticString(IRandom, Int32, Char, Single)
Generates a random string using only letters from the English alphabet, both upper and lower case, plus a separator character which can occur randomly with a specified probability.
Public methodStatic memberAlphabeticString(IRandom, Int32, RandomStringCasing, Char, Single)
Generates a random string using only and letters from the English alphabet, plus a separator character which can occur randomly with a specified probability.
Public methodStatic memberAlphaNumericString(IRandom, Int32)
Generates a random string using only decimal digits and letters from the English alphabet, both upper and lower case.
Public methodStatic memberAlphaNumericString(IRandom, Int32, RandomStringCasing)
Generates a random string using only decimal digits and letters from the English alphabet.
Public methodStatic memberAlphaNumericString(IRandom, Int32, Char, Single)
Generates a random string using only decimal digits and letters from the English alphabet, both upper and lower case, plus a separator character which can occur randomly with a specified probability.
Public methodStatic memberAlphaNumericString(IRandom, Int32, RandomStringCasing, Char, Single)
Generates a random string using only decimal digits and letters from the English alphabet, plus a separator character which can occur randomly with a specified probability.
Public methodStatic memberBase64String(IRandom, Int32)
Generates a random string representing a sequence of Base64 digits.
Public methodStatic memberBase64String(IRandom, Int32, RandomStringBase64CharacterPairs)
Generates a random string representing a sequence of Base64 digits.
Public methodStatic memberBinaryString
Generates a random string representing a sequence of binary digits.
Public methodStatic memberCharacters(IRandom, Char, Int32, Int32, Char)
Fills a portion of a provided character buffer with random characters using the provided character set.
Public methodStatic memberCharacters(IRandom, Char, Int32, Int32, Char, Char, Single, Boolean, Boolean, Boolean)
Fills a portion of a provided character buffer with random characters using the provided character set.
Public methodStatic memberDecimalString
Generates a random string representing a sequence of decimal digits.
Public methodStatic memberHexadecimalString(IRandom, Int32)
Generates a random string representing a sequence of decimal digits.
Public methodStatic memberHexadecimalString(IRandom, Int32, RandomStringCasing)
Generates a random string representing a sequence of decimal digits.
Public methodStatic memberIdentifier(IRandom, Int32)
Generates a random string using only decimal digits and letters from the English alphabet, both upper and lower case, with the restriction that the first character cannot be a decimal digit.
Public methodStatic memberIdentifier(IRandom, Int32, RandomStringCasing)
Generates a random string using only decimal digits and letters from the English alphabet, with the restriction that the first character cannot be a decimal digit.
Public methodStatic memberIdentifier(IRandom, Int32, Single)
Generates a random string using only decimal digits and letters from the English alphabet, both upper and lower case, plus the underscore character which can occur randomly with a specified probability, with the restriction that the first character cannot be a decimal digit.
Public methodStatic memberIdentifier(IRandom, Int32, RandomStringCasing, Single)
Generates a random string using only decimal digits and letters from the English alphabet, plus the underscore character which can occur randomly with a specified probability, with the restriction that the first character cannot be a decimal digit.
Public methodStatic memberOctalString
Generates a random string representing a sequence of octal digits.
Public methodStatic memberString(IRandom, Int32, Char)
Generates a random string using the provided character set.
Public methodStatic memberString(IRandom, Int32, Char, Char, Single, Boolean, Boolean, Boolean)
Generates a random string using the provided character set, plus a separator character which can occur randomly with a specified probability.
Top
See Also