private string GenerateRandomString(string strRand)
{
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;
}
{
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;
}
No comments:
Post a Comment