www.pudn.com > Fetion.rar > StringHelper.cs
namespace Imps.Client.Pc.CustomEmotionUI
{
using System;
using System.Text;
internal class StringHelper
{
private static Random m_rnd = new Random();
public static char RandomChar()
{
int num = m_rnd.Next(0x7a);
while (((num < 0x30) || ((num > 0x39) && (num < 0x41))) || (num > 90))
{
num = m_rnd.Next(0x7a);
}
return (char) num;
}
public static string RandomString(int length)
{
StringBuilder builder = new StringBuilder(length);
for (int i = 0; i < length; i++)
{
builder.Append(RandomChar());
}
return builder.ToString();
}
}
}