mirror of
https://github.com/wagesj45/CapyKit.git
synced 2024-11-14 04:03:36 -06:00
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
# GetRandomString(Int32) Method
|
||
|
||
|
||
A convenience method to generate a random string of the specified length using all character sets.
|
||
|
||
|
||
|
||
## Definition
|
||
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
||
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2
|
||
|
||
**C#**
|
||
``` C#
|
||
public static string GetRandomString(
|
||
int length
|
||
)
|
||
```
|
||
**F#**
|
||
``` F#
|
||
static member GetRandomString :
|
||
length : int -> string
|
||
```
|
||
|
||
|
||
|
||
#### Parameters
|
||
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.int32" target="_blank" rel="noopener noreferrer">Int32</a></dt><dd>The desired length of the generated random string.</dd></dl>
|
||
|
||
#### Return Value
|
||
<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>
|
||
\[Missing <returns> documentation for "M:CapyKit.Helpers.SecurityHelper.GetRandomString(System.Int32)"\]
|
||
|
||
## See Also
|
||
|
||
|
||
#### Reference
|
||
<a href="T_CapyKit_Helpers_SecurityHelper.md">SecurityHelper Class</a>
|
||
<a href="Overload_CapyKit_Helpers_SecurityHelper_GetRandomString.md">GetRandomString Overload</a>
|
||
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|
||
<a href="T_CapyKit_Helpers_ValidCharacterCollection.md">ValidCharacterCollection</a>
|
||
<a href="M_CapyKit_Helpers_SecurityHelper_GetRandomString_1.md">GetRandomString(Int32, ValidCharacterCollection[])</a>
|