# GetRandomString(Int32, ValidCharacterCollection[]) Method Gets a cryptographically strong random string using the character values found in [!:VALID_CHARACTERS]. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public static string GetRandomString( int length, params ValidCharacterCollection[] validChars ) ``` **F#** ``` F# static member GetRandomString : length : int * validChars : ValidCharacterCollection[] -> string ``` #### Parameters