stringhelper.cs
来自「破解的飞信源代码」· CS 代码 · 共 32 行
CS
32 行
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();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?