#region Generate Randome alphachar value
public string GenerateRandomString(string strRand)
{
string strRandom = string.Empty;
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var random = new Random();
var result = new string(
Enumerable.Repeat(chars, 2)
.Select(s => s[random.Next(s.Length)])
.ToArray());
strRandom = "A" + result;
return strRandom;
}
#endregion
public string GenerateRandomString(string strRand)
{
string strRandom = string.Empty;
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var random = new Random();
var result = new string(
Enumerable.Repeat(chars, 2)
.Select(s => s[random.Next(s.Length)])
.ToArray());
strRandom = "A" + result;
return strRandom;
}
#endregion
No comments:
Post a Comment