old_flsystem/应用/ProductClient/Tools.cs

27 lines
606 B
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
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();
}
}
}