标签:u3d string pen bsp 字符串 next public builder i++
string str="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public void CreateRandomCode() { char[] chars=str.ToCharArray(); StringBuilder strRan = new StringBuilder(); System.Random ran = new System.Random(); for (int i=0;i<6;i++) { strRan.Append(chars[ran.Next(0,36)]); } print(strRan); }
标签:u3d string pen bsp 字符串 next public builder i++
原文地址:https://www.cnblogs.com/zbyglls/p/13304367.html