Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string GenerateString(int, string, Random)

  • Declared in: RT.Util.Rnd

Declaration

public static string GenerateString(
    int length,
    string takeCharactersFrom = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
    Random rnd = null
)

Summary

Generates a random string of the specified length, taking characters from the specified arsenal of characters.

Parameters

intlength Length of the string to generate.
stringtakeCharactersFrom Arsenal to take random characters from. (Default is upper- and lower-case letters and digits.)
Randomrnd If not null, uses the specified random number generator.