using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
publicclass StringUtil
{
publicstatic string Random()
{
return Random(10);
}
publicstatic string Random(int length)
{
var builder = new StringBuilder();
var random = new Random();
for (int i = 0; i < length; i++)
{
builder.Append(Convert.ToChar(Convert.ToInt32(Math.Floor(26 * random.NextDouble() + 65))));
}
return builder.ToString();
}
}