C# Class Elastacloud.AzureManagement.Fluent.Helpers.RandomAccountName

A class used to create a random name
Mostra file Open project: azurecoder/fluent-management Class Usage Examples

Public Methods

Method Description
GetNameFromInitString ( string initString ) : string

Gets a name given an init string - name can be anything

GetPureRandomValue ( ) : string

Gets a pure random value for the name which will be 14 characters long

Private Methods

Method Description
GenerateSeed ( string prefix ) : int

Generates a prefix int that can be used as a seed for different prefix values

GetName ( string name = "" ) : string

Gets a random name by iterating through random numbers and letters

Method Details

GetNameFromInitString() public method

Gets a name given an init string - name can be anything
public GetNameFromInitString ( string initString ) : string
initString string Init string is a prefix for the name
return string

GetPureRandomValue() public method

Gets a pure random value for the name which will be 14 characters long
public GetPureRandomValue ( ) : string
return string