点击或拖拽改变大小

SoftBasicGetUniqueStringByGuidAndRandom 方法

获取一串唯一的随机字符串,长度为20,由Guid码和4位数的随机数组成,保证字符串的唯一性
Gets a string of unique random strings with a length of 20, consisting of a GUID code and a 4-digit random number to guarantee the uniqueness of the string

命名空间:  HslCommunication.BasicFramework
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static string GetUniqueStringByGuidAndRandom()

返回值

类型:String
随机字符串数据
示例
GetUniqueStringByGuidAndRandom示例
string uid = SoftBasic.GetUniqueStringByGuidAndRandom( );

// 例子,随机的一串数字,重复概率几乎为0,长度为36位字节
// ed28ea220cd34fea9fdd07a926be757d4562
参见