old_flsystem/应用/ProductClient/Tools.cs

27 lines
606 B
C#

using Api.Framework.Cps;
using CsharpHttpHelper;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ProductClient
{
class Tools
{
public static string GenerateRandomCode(int number)
{
StringBuilder sb = new StringBuilder();
Random r = new Random();
for (int i = 0; i < number; i++)
{
sb.Append(r.Next(0, 9));
}
return sb.ToString();
}
}
}